Why can't I specify `deploymentCircuitBreaker` con...
# aws
b
Why can't I specify
deploymentCircuitBreaker
config when creating an
awsx.ecs.FargateService
?
b
awsx.ecs.FargateService
is a component resource, a helper method for fargate deployments which wraps around the native resources. It's likely not exposed to that level
b
Thanks for the reply, @billowy-army-68599 ! The
Service
constructor args (
ServiceArgs
) in
awsx.ecs
also does not include
deploymentCircuitBreaker
. But, the
ServiceArgs
in
aws.ecs
does include
deploymentCircuitBreaker
. Is there a reason this configuration option (which is available when using, say, the AWS CLI) is not included in awsx?
b
yes, as above: awsx is an opinionated library which wraps
aws.ecs
- it's just not been exposed to the helper library. If you need the circuit breaker option, you should use the
aws.ecs
and build your own
b
As you said, it's an opinionated library, so I'm assuming the opinion of the library is that I should not be using
deploymentCircuitBreaker
(which is an ECS option that will roll back failing deployments). Is this because that option will conflict with what Pulumi may be doing to roll back a failed deployment? That's the root of my question -- I want to make sure I'm understanding the reason behind the exclusion of this option, since I don't want to enable something that's going to conflict with Pulumi.
b
it hasn't been excluded per se, it just hasn't been added as an option, it should work just fine
b
Got it, thank you for clarifying