Skip to content

Commit

Permalink
terraform: fix cache-log permissions
Browse files Browse the repository at this point in the history
This is what AWS sets when configuring the log bucket.
  • Loading branch information
zimbatm committed Nov 7, 2023
1 parent 8929ca0 commit eab30ea
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions terraform/cache_log.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,22 @@ data "aws_iam_policy_document" "cache_log" {
resources = [
aws_s3_bucket.cache_log.arn,
]
}

statement {
sid = "S3PolicyStmt-DO-NOT-MODIFY-1699369618664"
effect = "Allow"

principals {
type = "Service"
identifiers = ["logging.s3.amazonaws.com"]
}

actions = ["s3:PutObject"]

resources = [
"${aws_s3_bucket.cache_log.arn}/*",
]
}
}

Expand Down

0 comments on commit eab30ea

Please sign in to comment.