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.
This commit is contained in:
Conor 2022-03-28 11:06:41 +11:00 committed by GitHub
parent 9c9edd712e
commit def3d07aa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

8
s3.tf
View File

@ -4,14 +4,6 @@
resource "aws_s3_bucket" "vault_data" { resource "aws_s3_bucket" "vault_data" {
bucket_prefix = "${var.main_project_tag}-" 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 }) tags = merge({ "Project" = var.main_project_tag })
} }