Skip to content

Commit

Permalink
combine synapse-related oidc
Browse files Browse the repository at this point in the history
  • Loading branch information
xschildw committed Dec 4, 2024
1 parent befc4c3 commit 8e17691
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions org-formation/650-identity-providers/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,30 @@ GithubOidcSageBionetworksSynapseDockerRegistry:
- !Ref SynapseProdAccount
Region: us-east-1

GithubOidcSageBionetworksSynapse:
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-synapse
Parameters:
ProviderArn: !CopyValue [ !Sub '${resourcePrefix}-${appName}-ProviderArn' ]
ProviderRoleName: !Sub ${resourcePrefix}-${appName}-sage-bionetworks-synapse
ManagedPolicyArns:
- "arn:aws:iam::aws:policy/AdministratorAccess"
- "arn:aws:iam::aws:policy/AWSKeyManagementServicePowerUser"
TemplatingContext:
GitHubOrg: "Sage-Bionetworks"
Repositories:
- name: "synapse-docker-registry"
branches: ["*"]
- name: "nbconvert-webapp"
branches: ["master", "develop"]
DefaultOrganizationBinding:
Account:
- !Ref SynapseDevAccount
- !Ref SynapseProdAccount
Region: us-east-1

GithubOidcSageBionetworksGenieBPCInfra:
Type: update-stacks
DependsOn: GithubOidcSageBionetworks
Expand Down Expand Up @@ -872,29 +896,6 @@ GithubOidcOpenChallengesDeploy:
- !Ref OpenChallengesProdAccount
Region: us-east-1

GithubOidcNbConvertDeploy:
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}-nbconvert-deploy
Parameters:
ProviderArn: !CopyValue [ !Sub '${resourcePrefix}-${appName}-ProviderArn' ]
ProviderRoleName: !Sub ${resourcePrefix}-${appName}-nbconvert-deploy
MaxSessionDuration: 7200
ManagedPolicyArns:
- "arn:aws:iam::aws:policy/AdministratorAccess"
- "arn:aws:iam::aws:policy/AWSKeyManagementServicePowerUser"
TemplatingContext:
GitHubOrg: "Sage-Bionetworks"
Repositories:
- name: "nbconvert-webapp"
branches: ["master", "develop"]
DefaultOrganizationBinding:
Account:
- !Ref SynapseDevAccount
- !Ref SynapseProdAccount
Region: us-east-1

############################### Managed Policies ###############################
# Managed policies used in github OIDC providers
# Note: Managed policies can be used as work around for the AWS cloudformation
Expand Down

0 comments on commit 8e17691

Please sign in to comment.