Skip to content

benbpyle/stepfunctions-alias-sam

main
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
 
 
 
 
 
 
 
 
 
 
 
 

Step Function Versions and Aliases

This project is the sample that supports this blog post

Requirements

You'll need

  • Python
  • AWS SAM CLI
  • An AWS Account

Testing

sam deploy

Once the infrastructure is deployed, you can send a sample execution

aws stepfunctions start-execution --state-machine-arn arn:aws:states:<region>:<account-id>:stateMachine:SampleAliasMachine --input "{\"type\": \"B\"}"

Next, change the statemachine\alias.asl.json to make "B" fail the State Machine.

Re-run

sam deploy

In a separate window, run

aws stepfunctions start-execution --state-machine-arn arn:aws:states:<region>:<account-id>:stateMachine:SampleAliasMachine --input "{\"type\": \"B\"}"

The deployment will fail and rollback to Version 1.

About

SAM based project for using Step Function Aliases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published