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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ