Interview Prep/AWS/Observability, Deployments and Governance

How do you run production infrastructure as code across many accounts safely?

AdvancedProductionObservability, Deployments and Governance
Answer

Small state files per account, region and component (network, cluster, app), never one giant state. Remote state in S3 with versioning and native S3 state locking (use_lockfile = true in recent Terraform) or DynamoDB locking, in a dedicated account. Pipelines assume per-account deploy roles via OIDC. Plans are reviewed in pull requests, policy-as-code (OPA, Checkov, Sentinel) gates them, applies run only from the pipeline, and prod applies need approval.

aws All AWS questions

More on Observability, Deployments and Governance