From def3d07aa89e4ddc23e587d9e1ac587946ca4768 Mon Sep 17 00:00:00 2001 From: Conor Date: Mon, 28 Mar 2022 11:06:41 +1100 Subject: [PATCH] Removed unsupported apply_server_side_encryption https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#enable-default-server-side-encryption https://github.com/hashicorp/terraform-provider-aws/issues/23106 This is read-only and so the terraform apply fails as it's unable to use this feature. Removing this code so that any other noobs like myself going through the project/YouTube series don't get tripped up on this. --- s3.tf | 8 -------- 1 file changed, 8 deletions(-) diff --git a/s3.tf b/s3.tf index 9214d7a..e22e8a6 100644 --- a/s3.tf +++ b/s3.tf @@ -4,14 +4,6 @@ resource "aws_s3_bucket" "vault_data" { bucket_prefix = "${var.main_project_tag}-" - server_side_encryption_configuration { - rule { - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" - } - } - } - tags = merge({ "Project" = var.main_project_tag }) }