Skip to content

Commit 85ec61b

Browse files
committed
include a role condition test for AUD in sample CFN template
1 parent 3179f23 commit 85ec61b

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
@@ -149,6 +149,10 @@ Parameters:
149149
Description: Arn for the GitHub OIDC Provider.
150150
Default: ""
151151
Type: String
152+
OIDCAudience:
153+
Description: Audience supplied to configure-aws-credentials.
154+
Default: "sts.amazonaws.com"
155+
Type: String
152156
153157
Conditions:
154158
CreateOIDCProvider: !Equals
@@ -169,6 +173,8 @@ Resources:
169173
- !Ref GithubOidc
170174
- !Ref OIDCProviderArn
171175
Condition:
176+
StringEquals:
177+
token.actions.githubusercontent.com:aud: !Ref OIDCAudience
172178
StringLike:
173179
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:*
174180

0 commit comments

Comments
 (0)