Skip to content

Commit

Permalink
Merge pull request #3 from shchuko/master
Browse files Browse the repository at this point in the history
Upgrade: aws_s3_bucket.policy is deprecated, use aws_s3_bucket_policy resource
  • Loading branch information
sugdyzhekov authored Jun 3, 2022
2 parents 452bd91 + 368c613 commit 61a19f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion s3_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ resource "aws_s3_bucket" "logs" {
bucket = local.bucket
force_destroy = local.force_destroy
tags = local.tags
policy = data.aws_iam_policy_document.bucket_policy.json
}

resource "aws_s3_bucket_policy" "logs" {
bucket = aws_s3_bucket.logs.id
policy = data.aws_iam_policy_document.bucket_policy.json
}

0 comments on commit 61a19f9

Please sign in to comment.