Skip to content

Commit

Permalink
fix syntax (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssylver93 authored Nov 28, 2024
1 parent c0daa21 commit 5c121a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ resource "aws_iam_role" "github_actions_role" {
}
Action = "sts:AssumeRoleWithWebIdentity"
Condition = {
StringEquals = {pull
StringEquals = {
"${data.aws_iam_openid_connect_provider.github_openid_connect_provider.url}:aud" : "sts.amazonaws.com"
},
StringLike = {
Expand Down Expand Up @@ -167,12 +167,12 @@ resource "aws_iam_policy" "github_actions_policy" {
"s3:ListBucket", # Bucket-level operations
"s3:GetObject", # Object read
"s3:PutObject", # Object write
"s3:DeleteObject" # Object deletion
"s3:DeleteObject", # Object deletion
"cloudfront:CreateInvalidation" # Invalidate cache
],
Resource = [
"arn:aws:s3:::wfprev-dev-site", # Bucket-level actions like s3:ListBucket
"arn:aws:s3:::wfprev-dev-site/*" # Object-level actions
"arn:aws:s3:::wfprev-dev-site/*", # Object-level actions
"arn:aws:cloudfront::183631341627:distribution/*"
]
}
Expand Down

0 comments on commit 5c121a1

Please sign in to comment.