Interview Prep/Terraform/State and Backends in Production

What does `encrypt = true` do in the S3 backend?

BeginnerProductionState and Backends in Production
Answer

It enables server-side encryption for the state object. With kms_key_id it uses your KMS key; without it, S3's default encryption (SSE-S3). Also enforce encryption through the bucket's default encryption so a missing flag does not matter.

All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production