Create Configuration Variables

You are going to create variables to use across multiple workflows, defining them at the repository level.

Discover how to efficiently store and manage information in variables within GitHub Actions here.

1. Go to the repository that you have created in 4.1 Create AWSome Books Repository. Click Settings.

0001

2. In the left sidebar, click Secrets and variables dropdown and then select Actions.

0002

3. Select Variables tab. In the Repository variables section, click New repository variable.

0003

4. In the New variable console,

  • For Name, enter AWS_REGION.
  • For Value, enter us-east-1.
  • Click Add variable.

0004

5. Click New repository variable to add another variable.

0005

6. Repeat steps 4 and 5 for the other variables, using the information from the table below as a guide.

NameValue
PROJECTawsome-books
ROLE_TO_ASSUMEenter the role ARN you have created in step 18 in 4.3.1 Create GitHub Actions Role
JAVA_VERSION17
JAVA_DISTRIBUTIONtemurin
ECS_CLUSTERfcj
CODEDEPLOY_APPLICATIONenter the CodeDeploy Application name that you have noted down in step 15 in 7.2 Create ECS Cluster
CODEDEPLOY_APPLICATION_GROUPenter the CodeDeploy Deployment Group name that you have noted down in step 15 in 7.2 Create ECS Cluster

By the end, you should have a total of 8 variables configured at the repository level.

0006