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
gefragt vor einem Jahr258 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen