Closed arielalas closed 3 months ago
Thanks for reaching out. I think this issue is specific to localstack, as it has been reported several times in their repository. It looks like this may have been recently fixed in the last few weeks ago via: https://github.com/localstack/localstack/pull/11073. Have you tried using 3.6.0? If you're still having issues I suggest reaching out in their repository.
When I ran aws cloudformation deploy --stack-name stack1 --template-file template.json
with your template, I received the error:
An error occurred (ValidationError) when calling the CreateChangeSet operation: Template format error: Resource name qa-7ps-orchestrator is non alphanumeric.
So it looks the dashes need to be removed there for this to run. For further investigation on the CLI side we would like to see your debug logs (with any sensitive info redacted) by adding --debug
to the command.
@tim-finnigan thank you for your response, I was able to confirm that this issue is resolved using localstack version3.6.0
. Thank you very much!
Thanks for letting us know! I'll go ahead and close this issue.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Describe the bug
When running the following command to deploy a Step Function in localstack:
aws cloudformation deploy --stack-name stack1 --template-file output/us-east-1-combined-cft.json --endpoint-url=http://localhost:4566
I get the following error:
CFn resource failed to deploy: qa-7ps-orchestrator (An error occurred (InvalidDefinition) when calling the CreateStateMachine operation: ASLParserException ['line 1:5677, at "Label", mismatched input \'"Label"\' expecting {\'"Comment"\', \'"Type"\', \'"Choices"\', \'"Default"\', \'"Branches"\', \'"SecondsPath"\', \'"Seconds"\', \'"TimestampPath"\', \'"Timestamp"\', \'"TimeoutSeconds"\', \'"TimeoutSecondsPath"\', \'"HeartbeatSeconds"\', \'"HeartbeatSecondsPath"\', \'"ItemProcessor"\', \'"Iterator"\', \'"ItemSelector"\', \'"MaxConcurrencyPath"\', \'"MaxConcurrency"\', \'"Resource"\', \'"InputPath"\', \'"OutputPath"\', \'"ItemsPath"\', \'"ResultPath"\', \'"Result"\', \'"Parameters"\', \'"ResultSelector"\', \'"ItemReader"\', \'"ToleratedFailureCount"\', \'"ToleratedFailureCountPath"\', \'"ToleratedFailurePercentage"\', \'"ToleratedFailurePercentagePath"\', \'"Next"\', \'"End"\', \'"Cause"\', \'"CausePath"\', \'"Error"\', \'"ErrorPath"\', \'"Retry"\', \'"Catch"\'}', 'line 1:6909, at "Label", mismatched input \'"Label"\' expecting {\'"Comment"\', \'"Type"\', \'"Choices"\', \'"Default"\', \'"Branches"\', \'"SecondsPath"\', \'"Seconds"\', \'"TimestampPath"\', \'"Timestamp"\', \'"TimeoutSeconds"\', \'"TimeoutSecondsPath"\', \'"HeartbeatSeconds"\', \'"HeartbeatSecondsPath"\', \'"ItemProcessor"\', \'"Iterator"\', \'"ItemSelector"\', \'"MaxConcurrencyPath"\', \'"MaxConcurrency"\', \'"Resource"\', \'"InputPath"\', \'"OutputPath"\', \'"ItemsPath"\', \'"ResultPath"\', \'"Result"\', \'"Parameters"\', \'"ResultSelector"\', \'"ItemReader"\', \'"ToleratedFailureCount"\', \'"ToleratedFailureCountPath"\', \'"ToleratedFailurePercentage"\', \'"ToleratedFailurePercentagePath"\', \'"Next"\', \'"End"\', \'"Cause"\', \'"CausePath"\', \'"Error"\', \'"ErrorPath"\', \'"Retry"\', \'"Catch"\'}', 'line 1:7953, at "Label", mismatched input \'"Label"\' expecting {\'"Comment"\', \'"Type"\', \'"Choices"\', \'"Default"\', \'"Branches"\', \'"SecondsPath"\', \'"Seconds"\', \'"TimestampPath"\', \'"Timestamp"\', \'"TimeoutSeconds"\', \'"TimeoutSecondsPath"\', \'"HeartbeatSeconds"\', \'"HeartbeatSecondsPath"\', \'"ItemProcessor"\', \'"Iterator"\', \'"ItemSelector"\', \'"MaxConcurrencyPath"\', \'"MaxConcurrency"\', \'"Resource"\', \'"InputPath"\', \'"OutputPath"\', \'"ItemsPath"\', \'"ResultPath"\', \'"Result"\', \'"Parameters"\', \'"ResultSelector"\', \'"ItemReader"\', \'"ToleratedFailureCount"\', \'"ToleratedFailureCountPath"\', \'"ToleratedFailurePercentage"\', \'"ToleratedFailurePercentagePath"\', \'"Next"\', \'"End"\', \'"Cause"\', \'"CausePath"\', \'"Error"\', \'"ErrorPath"\', \'"Retry"\', \'"Catch"\'}'])
Part of my step function CFT definition includes
Label
as specified in this documentCFT portion including
Label
:Expected Behavior
I expect that the CFT deployment do not fail because there is a
Label
specified in the step function's definitionCurrent Behavior
CFT deployment fails because there is a
Label
property in the step function's definitionReproduction Steps
aws cloudformation deploy --stack-name stack1 --template-file {path-to-cft} --endpoint-url=http://localhost:4566
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.15.45 Python/3.11.9 Darwin/23.5.0 source/x86_64 prompt/off
Environment details (OS name and version, etc.)
MacOs 14.5 (23F79), Processor 2.3 GHz 8-Core Intel Core i9