Interview Prep/Terraform/State and Backends in Production

How do you audit read access to state?

IntermediateProductionState and Backends in Production
Answer

Enable CloudTrail data events for the state bucket (GetObject), send them to a log archive and alert on principals that are not the CI roles. In a mature setup an anomaly on reads of the prod/iam key pages the security team.

All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production