Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoScalingGroup CreationPolicy doesnt error #3598

Closed
whoDoneItAgain opened this issue Aug 13, 2024 · 1 comment · Fixed by #3609
Closed

AutoScalingGroup CreationPolicy doesnt error #3598

whoDoneItAgain opened this issue Aug 13, 2024 · 1 comment · Fixed by #3609
Assignees

Comments

@whoDoneItAgain
Copy link
Contributor

CloudFormation Lint Version

v1.10.1

What operating system are you using?

windows

Describe the bug

in the example template, i have a reference to ResourceSignalCount. There isnt a parameter for this but does not throw an error

Expected behavior

an error is thrown

Reproduction template

AWSTemplateFormatVersion: 2010-09-09

Resources:
  AutoScalingGroup:
    Type: AWS::AutoScaling::AutoScalingGroup
    CreationPolicy:
      ResourceSignal:
        Count: !Ref ResourceSignalCount
        Timeout: PT15M
    Properties:
      MaxSize: 1
      MinSize: 1
@kddejong kddejong self-assigned this Aug 13, 2024
@kddejong
Copy link
Contributor

Some notes for adding support:

  • Creation policies are ignored for resources that don't support them (this could be a Warning)

Other fixes:

  • One of LaunchTemplate, LaunchConfigurationName, InstanceId or MixedInstancesPolicy is required for AWS::AutoScaling::AutoScalingGroup
  • At least one Availability Zone or VPC Subnet is required for AWS::AutoScaling::AutoScalingGroup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants