Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

trek10inc/sfn-yaml-macro

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

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