Can and I and how do I restore an updated OpsWork stack to previous version

0

so I updated one of my stacks that Is a database and as a result lost records, is there a way i can role back up to a previous version of my stack so that the records I lost exist again?

mast
已提問 1 年前檢視次數 258 次
1 個回答
0

Yes, you can!

To do this, you will need to use the AWS Management Console or the AWS CLI. With console

  • Open the AWS Management Console and navigate to the OpsWorks Stacks page.
  • Select the stack that you want to restore and click the "Stack Settings" button.
  • In the Stack Settings page, click the "Manage Stack Versions" button.
  • In the Manage Stack Versions page, select the version that you want to restore from the list of available versions.
  • Click the "Restore" button.
  • Confirm that you want to restore the stack by clicking "Yes, Restore".
  • Wait for the stack to be restored. This may take a few minutes.

To restore a stack to a previous version using the AWS CLI, you can use the opsworks-2013-02-18 AWS CLI command restore-stack. You can try

aws opsworks-2013-02-18 restore-stack --stack-id <stack-id> --version-id <version-id>

Replace <stack-id> with the ID of the stack that you want to restore and <version-id> with the ID of the version that you want to restore. You can find the stack ID and version ID in the AWS Management Console or by using the list-stacks and describe-stack-versions AWS CLI commands. And ensure that you take the normal precautions you take for revisions

@seekrsi

SeanSi
已回答 1 年前

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

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

回答問題指南