Skip to content

Commit db96c5d

Browse files
authored
Add OIDC for aws-cdk-ecs-infra-template repo (#1491)
In an effort to keep the github aws-cdk-ecs-infra-template template in a working state we are going to setup AWS CDK CI deployments to AWS from that template project.
1 parent 416fbea commit db96c5d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

org-formation/650-identity-providers/_tasks.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,28 @@ GithubOidcBixArenaInfra:
967967
- !Ref BixArenaProdAccount
968968
Region: us-east-1
969969

970+
GithubOidcItSandboxDeploy: # allow repos to make test deployments into ITSandbox account
971+
Type: update-stacks
972+
DependsOn: GithubOidcSageBionetworks
973+
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.10.4/templates/IAM/github-oidc-provider.j2
974+
StackName: !Sub ${resourcePrefix}-${appName}-sage-it-deploy
975+
Parameters:
976+
ProviderArn: !CopyValue [ !Sub '${resourcePrefix}-${appName}-ProviderArn' ]
977+
ProviderRoleName: !Sub ${resourcePrefix}-${appName}-sage-it-deploy
978+
ManagedPolicyArns:
979+
- "arn:aws:iam::aws:policy/AdministratorAccess"
980+
MaxSessionDuration: 43200
981+
TemplatingContext:
982+
Repositories:
983+
- owner: "Sage-Bionetworks-IT"
984+
name: "aws-cdk-ecs-infra-template"
985+
branches: ["dev"]
986+
DefaultOrganizationBinding:
987+
Account:
988+
- !Ref ITSandboxAccount
989+
Region: us-east-1
990+
991+
970992
############################### Managed Policies ###############################
971993
# Managed policies used in github OIDC providers
972994
# Note: Managed policies can be used as work around for the AWS cloudformation

0 commit comments

Comments
 (0)