Skip to content

Commit

Permalink
cleanup and give some IAM permissions to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
beggers committed Jun 25, 2024
1 parent 7b0bd68 commit 41f9def
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions terraform/github_actions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,40 +31,13 @@ resource "aws_iam_role" "github_actions" {
}

data "aws_iam_policy_document" "github_actions_policy" {
statement {
actions = [
"s3:*",
]
effect = "Allow"
resources = [
"*",
]
}
statement {
actions = [
"s3:PutObject",
"s3:GetObject",
"s3:ListBucket"
]
effect = "Allow"
resources = [
"${aws_s3_bucket.terraform_state.arn}",
"${aws_s3_bucket.terraform_state.arn}/*"
]
}
statement {
actions = [
"cloudfront:GetCloudFrontOriginAccessIdentity",
"cloudfront:CreateInvalidation",
]
effect = "Allow"
resources = [
"*",
]
}
statement {
actions = [
"iam:GetOpenIDConnectProvider",
"route53:*",
"s3:*",
]
effect = "Allow"
resources = [
Expand Down

0 comments on commit 41f9def

Please sign in to comment.