This repository has been deprecated in favor of the native support for StepFunctions definitions in YAML.
Use YAML to define your Amazon States Language for your AWS CloudFormation-defined StepFunctions state machines
Made with ❤️ by Trek10. Available on the AWS Serverless Application Repository
After deploying this into your account, you can use the SFNYAML
transform:
Transform: [ AWS::Serverless-2016-10-31, SFNYAML ]
Then you can replace the JSON-defined DefinitionString
with YAML-defined DefinitionString
Amazon States Language:
MyStateMachine:
Type: AWS::StepFunctions::StateMachine
Properties:
RoleArn: !GetAtt ExecutionRole.Arn
# DefinitionString: !Sub |
# {
# "StartAt": "Hello"
# "States": {
# "Hello": {
# "Type": "Task",
# "Resource": "${Function.Arn}",
# "End": true
# }
# }
# }
DefinitionString:
StartAt: Hello
States:
Hello:
Type: Task
Resource: !GetAtt Function.Arn
End: true
All of the CloudFormation intrinsic functions are supported, and used as expected
- Does not support
AWS::NoValue
being used in the definition
MIT No Attribution (undefined)