Skip to content

Commit ddd7a22

Browse files
committed
[IT-4546] setup github OIDC for bixarena-infra
Create github OIDC access to allow CI deployments from github actions. depends on Sage-Bionetworks-IT#1448
1 parent 668a455 commit ddd7a22

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
@@ -954,6 +954,28 @@ GithubOidcSynapseStatusLambda:
954954
- !Ref SynapseProdAccount
955955
Region: us-east-1
956956

957+
GithubOidcBixArenaInfra:
958+
Type: update-stacks
959+
DependsOn: GithubOidcSageBionetworks
960+
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.7.6/templates/IAM/github-oidc-provider.j2
961+
StackName: !Sub ${resourcePrefix}-${appName}-bixarena-infra
962+
Parameters:
963+
ProviderArn: !CopyValue [ !Sub '${resourcePrefix}-${appName}-ProviderArn' ]
964+
ProviderRoleName: !Sub ${resourcePrefix}-${appName}-bixarena-infra
965+
MaxSessionDuration: 7200
966+
ManagedPolicyArns:
967+
- "arn:aws:iam::aws:policy/AdministratorAccess"
968+
- "arn:aws:iam::aws:policy/AWSKeyManagementServicePowerUser"
969+
TemplatingContext:
970+
GitHubOrg: "Sage-Bionetworks-IT"
971+
Repositories:
972+
- name: "bixarena-infra"
973+
branches: ["stage","prod"]
974+
DefaultOrganizationBinding:
975+
Account:
976+
- !Ref BixArenaProdAccount
977+
Region: us-east-1
978+
957979
############################### Managed Policies ###############################
958980
# Managed policies used in github OIDC providers
959981
# Note: Managed policies can be used as work around for the AWS cloudformation

0 commit comments

Comments
 (0)