Inspired on:
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:
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 |