Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.
/ sfn-yaml-macro Public archive

DEPRECATED - An AWS CloudFormation macro to allow the definition of Amazon States Language in YAML within a CloudFormation template

License

Notifications You must be signed in to change notification settings

trek10inc/sfn-yaml-macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

This repository has been deprecated in favor of the native support for StepFunctions definitions in YAML.

spacklepunch

AWS StepFunctions YAML Macro

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

Usage

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

Known Issues

  • Does not support AWS::NoValue being used in the definition

License

MIT No Attribution (undefined)

About

DEPRECATED - An AWS CloudFormation macro to allow the definition of Amazon States Language in YAML within a CloudFormation template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages