-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2530 from guardian/support-multiple-GuGithubActio…
…nsRole-instances-in-a-single-account Support multiple usages of `GuGithubActionsRole` in a single AWS account
- Loading branch information
Showing
3 changed files
with
32 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
"@guardian/cdk": major | ||
--- | ||
|
||
Support multiple usages of `GuGithubActionsRole` in a single AWS account | ||
|
||
This significantly changes the resources constructed by `GuGithubActionsRole`, | ||
specifically, **the construct will no longer instantiate a `GitHubOidcProvider`**. | ||
This is because you can only ever have one `GitHubOidcProvider` per provider | ||
domain (ie `token.actions.githubusercontent.com`) - while we may want multiple | ||
instances of `GuGithubActionsRole` in an AWS account, we can't have the | ||
`GuGithubActionsRole` construct trying to make a new `GitHubOidcProvider` with | ||
each instance. | ||
|
||
Consequently, you will need to instantiate the `GitHubOidcProvider` elsewhere | ||
as a singleton. At the Guardian, we do this with https://github.com/guardian/aws-account-setup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters