include a role condition test for AUD in sample CFN template
This commit is contained in:
parent
3179f23dc4
commit
85ec61b5fe
1 changed files with 6 additions and 0 deletions
|
|
@ -149,6 +149,10 @@ Parameters:
|
||||||
Description: Arn for the GitHub OIDC Provider.
|
Description: Arn for the GitHub OIDC Provider.
|
||||||
Default: ""
|
Default: ""
|
||||||
Type: String
|
Type: String
|
||||||
|
OIDCAudience:
|
||||||
|
Description: Audience supplied to configure-aws-credentials.
|
||||||
|
Default: "sts.amazonaws.com"
|
||||||
|
Type: String
|
||||||
|
|
||||||
Conditions:
|
Conditions:
|
||||||
CreateOIDCProvider: !Equals
|
CreateOIDCProvider: !Equals
|
||||||
|
|
@ -169,6 +173,8 @@ Resources:
|
||||||
- !Ref GithubOidc
|
- !Ref GithubOidc
|
||||||
- !Ref OIDCProviderArn
|
- !Ref OIDCProviderArn
|
||||||
Condition:
|
Condition:
|
||||||
|
StringEquals:
|
||||||
|
token.actions.githubusercontent.com:aud: !Ref OIDCAudience
|
||||||
StringLike:
|
StringLike:
|
||||||
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:*
|
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:*
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue