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.

Given this configuration, you should achieve the following outcome after completing this page:

Configuration
Environment pirates-dev
AppName too-tikki
Outcome
GitHub Environment pirates-dev-app-too-tikki-cicd

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.