question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validate UpdatePolicy for AutoScalingRollingUpdate

See original GitHub issue

cfn-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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kddejongcommented, Oct 2, 2018

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.

2reactions
kddejongcommented, Nov 17, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found