Validate UpdatePolicy for AutoScalingRollingUpdate
See original GitHub issuecfn-lint version: (cfn-lint --version
) 0.7.2
Description of issue.
Using a template like:
Resources:
AutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
# ...
MinSize: "1"
MaxSize: "1"
# ...
UpdatePolicy:
AutoScalingRollingUpdate:
MinInstancesInService: 1
will fail at deployment time with an error from CloudFormation like:
AWS::AutoScaling::AutoScalingGroup AutoScalingGroup UPDATE_FAILED: MinInstancesInService must be less than the autoscaling group’s MaxSize
It would be nice to have protection against this. I guess there are other constraints, some are in the docs. I submitted a docs PR for this one.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Validate UpdatePolicy for AutoScalingRollingUpdate #362
Started with rule E3016 to check the basic configuration of the UpdatePolicy (attributes, values are of the correct type), etc.
Read more >UpdatePolicy attribute - AWS CloudFormation
AutoScalingRollingUpdate policy. To specify how CloudFormation handles rolling updates for an Auto Scaling group, use the AutoScalingRollingUpdate policy.
Read more >AWS : CloudFormation - Creating an ASG with rolling update
In this page, we'll create an Auto Scaling group with an update policy that keeps 2 instances running during a rolling update using...
Read more >Rolling Update with AWS CloudFormation - cloudonaut
CloudFormation supports the UpdatePolicy attribute for Auto Scaling Groups. You can define that CloudFormation performs a rolling update of ...
Read more >Specify how F5 AWS CloudFormation 2.0 handles rolling BIG ...
You find the autoscaling rolling update policy configuration in the nested ... Select Next; Select the two check boxes to acknowledge the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Started with rule E3016 to check the basic configuration of the UpdatePolicy (attributes, values are of the correct type), etc.
Moving down the chain to this one next.
Sorry @kalpik I lost track of this. I have created pull request #468 totally rewritten to handle conditions on each level. Used your example for adding to tests. Thanks for reporting this.