diff --git a/org-formation/650-identity-providers/_tasks.yaml b/org-formation/650-identity-providers/_tasks.yaml index 88618c20..77461b73 100644 --- a/org-formation/650-identity-providers/_tasks.yaml +++ b/org-formation/650-identity-providers/_tasks.yaml @@ -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 @@ -872,32 +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/AmazonEC2ContainerRegistryFullAccess" - - "arn:aws:iam::aws:policy/AWSLambda_FullAccess" - - "arn:aws:iam::aws:policy/CloudWatchLogsFullAccess" - - "arn:aws:iam::aws:policy/IAMFullAccess" - - "arn:aws:iam::aws:policy/AWSCloudFormationFullAccess" - 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