Preserve aws deployment state in a file and then use to redeploy.

0

How can we achieve following? Is there a command/cli for doing this:

Preserve aws deployment state in a file and then use to redeploy. Use this file to deploy and clean and then redploy to bring in same running instances and services. Can we use Sam or another command to save the state in a yaml or a similar file?

  1. command save-state <aws-state.yaml>
  2. command clean-existing-state //wipes and cleans off aws deployed state, can probably turn off or even remove
  3. command restore-state <aws-state.yaml>
  4. vim aws-state.yaml //manually make certain changes
  5. command clean-existing-state
  6. command restore-state <aws-state.yaml> //redploy updated state

Thanks

rejji
已提問 2 年前檢視次數 173 次
1 個回答
0

If you want to define a repeatable deployment that you can use to manage your infrastructure, you've just defined cloudformation

While there are some attempts to turn existing infrastructure into CloudFormation, such as Cloudformer - it's quite difficult to do this reliably.

You can use Drift Detection to show where your infrastructure has changed

已回答 2 年前

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

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

回答問題指南