-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* UML-3589: update data parse workspace * add ur * copy workspace cleanup order
- Loading branch information
1 parent
c446e0a
commit 38363ac
Showing
1 changed file
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
|
||
- name: Get terraform version | ||
- name: Set terraform version | ||
id: set-terraform-version | ||
uses: ministryofjustice/opg-github-actions/.github/actions/[email protected] | ||
with: | ||
|
@@ -57,14 +57,15 @@ jobs: | |
with: | ||
ssh-private-key: ${{ secrets.USE_AN_LPA_DEPLOY_KEY_PRIVATE_KEY }} | ||
|
||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@50ac8dd1e1b10d09dac7b8727528b91bed831ac0 # v3.0.2 | ||
- name: configure AWS credentials for getting pagerduty token | ||
uses: aws-actions/configure-aws-credentials@a78e788c51463a506fbaaec784bab37f73afb4e8 # [email protected] | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_ACTIONS }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_ACTIONS }} | ||
role-to-assume: arn:aws:iam::367815980639:role/opg-use-an-lpa-ci | ||
aws-region: eu-west-1 | ||
role-duration-seconds: 900 | ||
role-session-name: OPGLPADestroyEphemeralEnvironment | ||
role-duration-seconds: 1800 | ||
role-session-name: OPGUseAnLPADevAssumeGithubAction | ||
|
||
- name: set pagerduty token | ||
run: | | ||
|
@@ -73,6 +74,15 @@ jobs: | |
echo "::add-mask::$TF_VAR_pagerduty_token" | ||
echo TF_VAR_pagerduty_token=$TF_VAR_pagerduty_token >> $GITHUB_ENV | ||
- name: configure AWS credentials for terraform | ||
uses: aws-actions/configure-aws-credentials@a78e788c51463a506fbaaec784bab37f73afb4e8 # [email protected] | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_ACTIONS }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_ACTIONS }} | ||
aws-region: eu-west-1 | ||
role-duration-seconds: 3600 | ||
role-session-name: OPGUseAnLPATerraformGithubAction | ||
|
||
- name: Run workspace cleanup | ||
working-directory: ./terraform/environment | ||
env: | ||
|