How to Push Step Functions to Repo

0

Hello,

My team and I are working on implementing Repos for our ETL functions (Glue, Step Functions and Lambdas). I was wondering if there was a way to push changes to step Functions to a Repo? I know I can copy and paste code out the Edit window, but that feels pretty manual. I was hoping for a less manual way of having Version Control over Step Functions changes, as our step Functions are pretty extensive and would be better off editing in the console and then pushing the update with the click of a few buttons.

Thanks!

4 Answers
0

There is no such way currently. You will need to use the visual editor to create the initial state machine, you will then need to copy and paste it into a file and add it to the repo. Going forward, you can use the AWS toolkit in your IDE to make the changes to the json file, which the SDK can visualize. If you want to use the visual editor again, you will need to copy the file over again.

profile picture
EXPERT
Uri
answered a month ago
0

Thank you for your response.

Do you know if this is on AWS' roadmap to add version control integration much like there is for AWS Glue?

answered a month ago
0

Perhaps you can use CLI/SDK to describe the state machine and get the definition and suggest also look for other output provided to consider also versioning those other information, not only the definition.

For the CLI you can look at describe-state-machine for step functions. For Lambda look at the get-function, that gives you link to download the deployment package. SDK for different languages would have same functionality.

profile picture
answered a month ago
0

This feature is not natively supported by Step Functions.

A workaround will be to have a process which does a describe-state-machine using the SDK/CLI, then save the output as your state-machine.asl.json and track the state machine in your version control.

When you would like to update a new version of your state machine you will have to make the update-sate-machine api call with the new state machine definition file.

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions