Skip to content

Commit

Permalink
chore: remove deprecated attribute (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeyheath authored Jul 6, 2023
1 parent 0acc359 commit 2684a0f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions aws-s3-private-bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,17 @@ resource "aws_s3_bucket" "bucket" {
}
}

server_side_encryption_configuration {
rule {
apply_server_side_encryption_by_default {
sse_algorithm = "AES256"
}
tags = local.tags
}

resource "aws_s3_bucket_server_side_encryption_configuration" "enc" {
bucket = aws_s3_bucket.bucket.id

rule {
apply_server_side_encryption_by_default {
sse_algorithm = "AES256"
}
}
tags = local.tags
}

resource "aws_s3_bucket_public_access_block" "bucket" {
Expand Down Expand Up @@ -212,4 +215,4 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "bucket_kms_encryp
sse_algorithm = "aws:kms"
}
}
}
}

0 comments on commit 2684a0f

Please sign in to comment.