Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IT-3831] GH OIDC image builder deployments #1323

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions org-formation/650-identity-providers/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,26 @@ GithubOidcPackerImageDeploy:
branches: ["master"]
- name: "packer-winserver-2022"
branches: ["master"]
DefaultOrganizationBinding:
Account: !Ref ImageCentralAccount
Region: us-east-1

# GH OIDC for AWS image builder deployments to AWS imagecentral account
GithubOidcImageBuilderDeploy:
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}-imagebuilder-deploy
Parameters:
ProviderArn: !CopyValue [ !Sub '${resourcePrefix}-${appName}-ProviderArn' ]
ProviderRoleName: !Sub ${resourcePrefix}-${appName}-imagebuilder-deploy
MaxSessionDuration: 7200
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AmazonEC2FullAccess
- arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
TemplatingContext:
GitHubOrg: "Sage-Bionetworks-IT"
Repositories:
- name: "aws-ami-monorepo"
branches: ["main"]
DefaultOrganizationBinding:
Expand Down
Loading