Skip to content

[Potential Issue] E1051 Dynamic reference to secret in Parameters section #3706

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

Closed
armanjal opened this issue Sep 23, 2024 · 0 comments · Fixed by #3707
Closed

[Potential Issue] E1051 Dynamic reference to secret in Parameters section #3706

armanjal opened this issue Sep 23, 2024 · 0 comments · Fixed by #3707

Comments

@armanjal
Copy link

CloudFormation Lint Version

1.14.1

What operating system are you using?

Mac

Describe the bug

cfn-lint raises a E1051 on a dynamic reference to a secret within the Parameters section of a template.
The secret is being read successfully by the consuming resource so I am unsure why this error occurs. The template is using
Transform: AWS::Serverless-2016-10-31 and judging by the docs, the secret is resolved post-transformation.
Any assistance on this would be greatly appreciated -thanks.

Expected behavior

cfn-lint to run without errors.

Reproduction template

AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31

Parameters:
Secret:
Type: String
Description: A test secret
Default: '{{resolve:secretsmanager:/applications/testing/secret/internal}}'

Resources:
Lambda:
Type: AWS::Serverless::Function
""" other config """
Properties:
Environment:
Variables:
SECRET: !Ref Secret

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.

1 participant