You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: