Skip to content

Commit 53388ed

Browse files
feat: Add skip_destroy argument in the aws_s3_bucket_public_access_block and set it to true
1 parent cdf595d commit 53388ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,7 @@ resource "aws_s3_bucket_public_access_block" "this" {
11481148
block_public_policy = var.block_public_policy
11491149
ignore_public_acls = var.ignore_public_acls
11501150
restrict_public_buckets = var.restrict_public_buckets
1151+
skip_destroy = true
11511152
}
11521153

11531154
resource "aws_s3_bucket_ownership_controls" "this" {

0 commit comments

Comments
 (0)