Skip to content

Commit 567d414

Browse files
Merge pull request #563 from russau/docs/readme-role-update
Minor: include a role condition test for AUD in sample CFN template
2 parents 32eb1b4 + 85ec61b commit 567d414

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ Parameters:
161161
Description: Arn for the GitHub OIDC Provider.
162162
Default: ""
163163
Type: String
164+
OIDCAudience:
165+
Description: Audience supplied to configure-aws-credentials.
166+
Default: "sts.amazonaws.com"
167+
Type: String
164168
165169
Conditions:
166170
CreateOIDCProvider: !Equals
@@ -181,6 +185,8 @@ Resources:
181185
- !Ref GithubOidc
182186
- !Ref OIDCProviderArn
183187
Condition:
188+
StringEquals:
189+
token.actions.githubusercontent.com:aud: !Ref OIDCAudience
184190
StringLike:
185191
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:*
186192

0 commit comments

Comments
 (0)