Repository navigation
fix(ecs): model the circuit breaker threshold and reset fields - #216
Merged
Merged
Conversation
AWS added ResetOnHealthyTask and ThresholdConfiguration (Type of COUNT,
BOUNDED_PERCENT or UNBOUNDED_PERCENT, and an integer Value) to
AWS::ECS::Service DeploymentConfiguration.DeploymentCircuitBreaker and
returns them on read. The schema did not know the fields, so rendering a
service back to Pkl failed with
deploymentConfiguration["deploymentCircuitBreaker"]: Unsupported
desired declaration fields: Set("ResetOnHealthyTask",
"ThresholdConfiguration")
Both fields are now modelled as provider defaults and recorded in the
dispositions manifest. AWS defaults them to true and BOUNDED_PERCENT 50.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
AWS added two fields to
AWS::ECS::ServiceDeploymentConfiguration.DeploymentCircuitBreakerand returns them on read:ResetOnHealthyTask(boolean, defaults totrue)ThresholdConfiguration(TypeofCOUNT,BOUNDED_PERCENTorUNBOUNDED_PERCENT, plus an integerValue; defaults toBOUNDED_PERCENT/50)The schema only declared
enableandrollback, so rendering a service back to Pkl fails on 0.1.21:Change
resetOnHealthyTaskandthresholdConfigurationtoDeploymentCircuitBreaker, with a newThresholdConfigurationsub-resource. Shapes are taken from the current CloudFormation registry schema forAWS::ECS::Service.schema/provider-default-dispositions.json, following thehostedZoneTierchange in fix(route53): model HostedZoneConfig.hostedZoneTier #208.Testing
make verify-schemapassesgo test -tags=unit ./...passes