Skip to content

Commit

Permalink
[IT-4228] Setup github OIDC access for codeocean-infra (#1322)
Browse files Browse the repository at this point in the history
We have setup a SageBionetworks-IT/codeocean-infra[1] repo to deploy the
code ocean application to AWS.  This will allow the repo access to deploy
resources to the AWS org-sagebase-codeocean-prod account.

[1] https://github.com/Sage-Bionetworks-IT/codeocean-infra
  • Loading branch information
zaro0508 authored Jan 21, 2025
1 parent b27fe0e commit b479e40
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions org-formation/650-identity-providers/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1061,3 +1061,24 @@ SynapseMonorepoCloudfrontAccessPolicy:
]
}
PolicyName: SynapseMonorepoCloudfrontAccessPolicy

GithubOidcSageBionetworksItCodeOceanInfra:
Type: update-stacks
DependsOn: GithubOidcSageBionetworks
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.7.6/templates/IAM/github-oidc-provider.j2
StackName: !Sub ${resourcePrefix}-${appName}-sage-bionetworks-it-codeocean-infra
Parameters:
ProviderArn: !CopyValue [ !Sub '${resourcePrefix}-${appName}-ProviderArn' ]
ProviderRoleName: !Sub ${resourcePrefix}-${appName}-sage-bionetworks-it-codeocean-infra
ManagedPolicyArns:
- "arn:aws:iam::aws:policy/AdministratorAccess"
- "arn:aws:iam::aws:policy/AWSKeyManagementServicePowerUser"
TemplatingContext:
GitHubOrg: "Sage-Bionetworks-IT"
Repositories:
- name: "codeocean-infra"
branches: ["main"]
DefaultOrganizationBinding:
Account:
- !Ref CodeOceanProdAccount
Region: us-east-1

0 comments on commit b479e40

Please sign in to comment.