Merge pull request #563 from russau/docs/readme-role-update
Minor: include a role condition test for AUD in sample CFN template
This commit is contained in:
commit
567d4149d6
1 changed files with 6 additions and 0 deletions
|
|
@ -161,6 +161,10 @@ Parameters:
|
|||
Description: Arn for the GitHub OIDC Provider.
|
||||
Default: ""
|
||||
Type: String
|
||||
OIDCAudience:
|
||||
Description: Audience supplied to configure-aws-credentials.
|
||||
Default: "sts.amazonaws.com"
|
||||
Type: String
|
||||
|
||||
Conditions:
|
||||
CreateOIDCProvider: !Equals
|
||||
|
|
@ -181,6 +185,8 @@ Resources:
|
|||
- !Ref GithubOidc
|
||||
- !Ref OIDCProviderArn
|
||||
Condition:
|
||||
StringEquals:
|
||||
token.actions.githubusercontent.com:aud: !Ref OIDCAudience
|
||||
StringLike:
|
||||
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:*
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue