Skip to content

Add a GitHub environment

This section guides you through setting up the GitHub environment used to deploy the container image to AWS.

This must be done to be aligned with the IAM permissions created after enabling IamForCicd during setup of IAM roles

What is a GitHub environment?

GitHub environments store secrets unique to the environment. It also allows you to define deployment protection rules, such as requiring a manual approval before deployment.

Step 1: Create environment

Go to your GitHub infrastructure repository and navigate to Settings > Environments and click on New environment.

Name

<Environment>-<AppName>-cicd (for example pirates-dev-app-too-tikki-cicd)

Next step

Add a GitHub workflow file to the infrastructure repository.