Skip to content

Commit

Permalink
chore: use permissive settings initially when no environments exist
Browse files Browse the repository at this point in the history
  • Loading branch information
rochecompaan committed Oct 1, 2024
1 parent c1a1caa commit e445246
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions {{cookiecutter.project_slug}}/terraform/github/oidc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ resource "aws_iam_role" "github_oidc_role" {
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringLike": {
"token.actions.githubusercontent.com:sub": "repo:{{ cookiecutter.source_control_organization_slug }}/{{ cookiecutter.repo_name }}:*"
},
"StringEquals": {
"token.actions.githubusercontent.com:aud": "sts.amazonaws.com",
"token.actions.githubusercontent.com:sub": [
"repo:{{ cookiecutter.source_control_organization_slug }}/{{
cookiecutter.repo_name }}:environment:sandbox",
"repo:{{ cookiecutter.source_control_organization_slug }}/{{
cookiecutter.repo_name }}:environment:staging",
"repo:{{ cookiecutter.source_control_organization_slug }}/{{
cookiecutter.repo_name }}:environment:prod"
]
"token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
}
}
}
}
Expand Down

0 comments on commit e445246

Please sign in to comment.