We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3748d9e + 1bd3750 commit 1a6f1ffCopy full SHA for 1a6f1ff
src/init/main.tf
@@ -40,6 +40,14 @@ resource "aws_s3_bucket_acl" "terraform_states" {
40
acl = "private"
41
}
42
43
+resource "aws_s3_bucket_public_access_block" "terraform_states" {
44
+ bucket = aws_s3_bucket.terraform_states.id
45
+ block_public_acls = true
46
+ block_public_policy = true
47
+ ignore_public_acls = true
48
+ restrict_public_buckets = true
49
+}
50
+
51
resource "aws_s3_bucket_versioning" "terraform_states" {
52
bucket = aws_s3_bucket.terraform_states.id
53
versioning_configuration {
0 commit comments