Skip to content

Commit

Permalink
Update main.tf (#27)
Browse files Browse the repository at this point in the history
* Update main.tf

No point in having a policy if the module is diabled.

* Updated README.md

* Executed 'terraform fmt'

Co-authored-by: actions-bot <[email protected]>
Co-authored-by: PePe Amengual <[email protected]>
  • Loading branch information
3 people authored Jun 30, 2020
1 parent 2cd3e0e commit 53ecb42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ resource "aws_s3_bucket" "default" {
# https://www.terraform.io/docs/providers/aws/r/s3_bucket_public_access_block.html
# for the nuances of the blocking options
resource "aws_s3_bucket_public_access_block" "default" {
count = var.enabled ? 1 : 0
bucket = join("", aws_s3_bucket.default.*.id)

block_public_acls = var.block_public_acls
Expand Down

0 comments on commit 53ecb42

Please sign in to comment.