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
posta 2 anni fa173 visualizzazioni
1 Risposta
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

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande