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.
More on State and Backends in Production
Why should Terraform state never be committed to Git?BeginnerHow do you bootstrap the remote backend, given the bucket must exist before Terraform can use it?IntermediateWhat does a hardened S3 state bucket look like?IntermediateWhat is the minimum IAM permission set for the S3 backend?IntermediateHow do you move from DynamoDB locking to S3 native locking in a live fleet?IntermediateState was deleted or corrupted. How do you recover?Advanced