Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 1.32 KB

File metadata and controls

24 lines (14 loc) · 1.32 KB

AWS PREREQUISITES FOR THE GITHUB ACTIONS CI/CD PIPELINE

Inspired on:

Part 1 (CDK Bootstrap)

Make sure that the target account (on the needed regions) have CDK Bootstrapped already. If not, please follow these steps to have CDK init stack already in place:

Part 2 (GitHub OIDC Federation and Role)

The CI/CD uses aws-action configure-aws-credentials with OIDC federation. Prior to using this project, we need to deploy the github-actions-oidc-federation-and-role CloudFormation template in the AWS account(s) that we need to deploy the solution. Specify the GitHub Organization Name, Repository Name, and the specific branch you want to deploy on.

Note: In this case, "GitHub Organization Name" is "san99tiago" (my GitHub account).

To use the example you will need to set the following GitHub Action Secrets:

Secret Key Used With Description
AWS_ACCOUNT_ID configure-aws-credentials The AWS account ID
AWS_DEPLOY_ROLE configure-aws-credentials The name of the IAM role