How to migrate step machine to another account

0

Is there any way to migrate step function/machine from one account to another?

已提問 2 年前檢視次數 789 次
2 個答案
1

You can use the DescribeStateMachine API to get the all the information about the state machine, including the definition and then use the CreateStateMachine to create a new one in the other account.

profile pictureAWS
專家
Uri
已回答 2 年前
0

Hopefully you have used some Infrastructure as Code tool such as Cloudformation, SAM or CDK to create your Step Functions code. In that case you should be able to run the same IaC code by just modifying the parameters in another account.

If you have created manually on the AWS console, you can try copying the generated Amazon States Language (ASL) JSON code and create a new Step Function in the new account and paste the copied ASL after modifying relevant parameters. However, with this approach, the other resources such as Lambda functions, SQS queues, SNS topics etc. etc. that are being referred to by the Step Functions need to exist in the new account.

profile pictureAWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南