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:
parent
9c9edd712e
commit
def3d07aa8
8
s3.tf
8
s3.tf
|
@ -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 })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue