Search code examples
amazon-web-servicesaws-step-functions

Transitioning between development and production stages with AWS Step Functions


I have an AWS Step Function that is large enough for me to start worrying about me missing errors updating and deploying.

I have created a duplicate Step Function "dev" and have been copying over my updated JSON from "dev" into my "prod" Step Function. There are lots of Lambda ARNs to update and permissions in both Step Function's IAM Role. I was wondering if there was a better/automatic way of updating the "prod" environment other than pasting my "dev" JSON and then updating all of the Lambda references manually?


Solution

  • Using words like "dev" and "prod" is a sign that you have outgrown the console.

    AWS offers several infrastructure-as-code approaches to deploy the same resources to multiple environments. AWS recommends a multi-environment setup, with a separate account per environment.

    For low barriers of entry, consider the Serverless Application Model (AWS SAM) and the Cloud Development Kit (AWS CDK), which both support low-complexity CI/CD. There are plenty of 3rd party IaaC solutions as well.