Skip to content

Commit

Permalink
attach bucket policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ashle001 committed Sep 15, 2020
1 parent 4c4d67c commit f8ea902
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ data "aws_iam_policy_document" "this" {
}
}

##########
# attach bucket policy
##########
resource "aws_s3_bucket_policy" "this" {
bucket = aws_s3_bucket.this.bucket
policy = data.aws_iam_policy_document.this.json
}

resource "null_resource" "s3_create_wait" {
triggers = {
bucket = aws_s3_bucket.this.id
Expand Down

0 comments on commit f8ea902

Please sign in to comment.