-
Notifications
You must be signed in to change notification settings - Fork 597
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
Failing validation of Parameter Store type parameters #3870
Comments
Can you share how you are using the values? Are you using the language extension? Is this in a FindInMap? Looking at possible PRs with that release that could have caused this. |
The stack where I first found the problem after bumping the ver of cfn-lint the pipeline uses is a SAM template. Transform:
- AWS::LanguageExtensions
- AWS::Serverless-2016-10-31 The Globals:
Function:
Architectures:
- x86_64
Runtime: python3.12
Tracing: Disabled
VpcConfig:
SecurityGroupIds:
- !Ref sg
SubnetIds: !Ref subnets The security group referenced above is where the sg:
Type: "AWS::EC2::SecurityGroup"
Properties:
GroupDescription: "mySG"
GroupName: "mySG"
VpcId: !Ref vpcId
... The language extensions transform is used elsewhere in the template. |
Okay, yea, I know what the issue is then. I'm on it. |
Some people are using LanguageExtension into SAM to help with parameter resolution before running SAM. This is part of aws/serverless-application-model#2533. We did this in #3861 but we shouldn't be doing this for SSM parameters. Fix is incoming. |
@kddejong You're a champion. Thanks for the quick turn around. |
CloudFormation Lint Version
1.22.0
What operating system are you using?
Mac
Describe the bug
A template with Parameter Store type parameters fails validation when the default value is a parameter name (as it should be) not a value of the type that will eventually be read from Parameter Store.
Eg,
The text was updated successfully, but these errors were encountered: