Add a GitHub environment
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-ecr |
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 application repository and navigate to Settings > Environments and click on New environment.
- Name
-
<Environment>-<AppName>-ecr
(for examplepirates-dev-app-too-tikki-ecr
)
Next step
Add a GitHub workflow file to the application repository.