Skip to content

Commit

Permalink
Munge bucket policy
Browse files Browse the repository at this point in the history
  • Loading branch information
beggers committed Mar 4, 2024
1 parent 6708986 commit 04b784c
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions terraform/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,7 @@ data "aws_iam_policy_document" "website_policy" {
actions = [
"s3:DeleteObject",
"s3:PutObject",
"s3:GetObject"
]
effect = "Allow"
principals {
type = "AWS"
identifiers = [
aws_iam_role.github_actions.arn
]
}
resources = [
"${aws_s3_bucket.main.arn}/*"
]
}
statement {
actions = [
"s3:GetObject",
"s3:ListBucket"
]
effect = "Allow"
Expand All @@ -45,6 +31,7 @@ data "aws_iam_policy_document" "website_policy" {
]
}
resources = [
"${aws_s3_bucket.main.arn}/*",
"${aws_s3_bucket.main.arn}"
]
}
Expand Down

0 comments on commit 04b784c

Please sign in to comment.