Interview Prep/AWS/Observability, Secrets, KMS and CloudFormation

You need change previews before applying an infrastructure change.

IntermediateScenarioObservability, Secrets, KMS and CloudFormation
Answer

Situation read → Change sets.

What I'd do →

  1. aws cloudformation create-change-set --stack-name s --change-set-name c1 --template-body file://t.yaml
  2. describe-change-set to see replacements
  3. Look for Replacement: True on stateful resources
  4. execute-change-set after review

Why → Replacement of a database is a data-loss event.

Interview tip → Use stack policies for protected resources.

aws All AWS questions

More on Observability, Secrets, KMS and CloudFormation