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
If the key of AWS::StepFunctions::StateMachine DefinitionSubstitutions is the same as the parameter name or resource ID, an E1029 error occurs.
I do not want to use the Sub function. So, I set the DefinitionSubstitutions map to ResouceId: !Ref ResouceId. Then, E1029 is generated when the key is referenced.
$ cfn-lint ./a.yaml
E1029 Found an embedded parameter "${myParam}" outside of an "Fn::Sub" at Resources/TestStateMachine/Properties/Definition/States/Test/Parameters/Key1
a.yaml:28:15
E1029 Found an embedded parameter "${mySnsTopic}" outside of an "Fn::Sub" at Resources/TestStateMachine/Properties/Definition/States/Test/Parameters/Key2
a.yaml:29:15
Expected behavior
pass lint.
Reproduction template
---
AWSTemplateFormatVersion: "2010-09-09"Parameters:
myParam:
Type: StringResources:
mySnsTopic:
Type: AWS::SNS::TopicTestStateMachine:
Type: AWS::StepFunctions::StateMachineProperties:
RoleArn: arn:aws:iam::123456789012:role/abcDefinitionSubstitutions:
# define key as parameter name or resource idmyParam: !Ref myParam# define key as parameter name or resource idmySnsTopic: !GetAtt mySnsTopic.TopicName# define key as none resource namemyOkKey: 1234Definition:
StartAt: TestStates:
Test:
End: trueParameters:
Key1: ${myParam} # E1029Key2: ${mySnsTopic} # E1029Key3: ${myOkKey} # okType: Pass
The text was updated successfully, but these errors were encountered:
CloudFormation Lint Version
1.18.1
What operating system are you using?
Ubuntu
Describe the bug
If the key of AWS::StepFunctions::StateMachine DefinitionSubstitutions is the same as the parameter name or resource ID, an E1029 error occurs.
I do not want to use the Sub function. So, I set the DefinitionSubstitutions map to
ResouceId: !Ref ResouceId
. Then, E1029 is generated when the key is referenced.Expected behavior
pass lint.
Reproduction template
The text was updated successfully, but these errors were encountered: