Skip to content

Commit

Permalink
Merge pull request #8771 from ministryofjustice/fix/setup-terraform-f…
Browse files Browse the repository at this point in the history
…or-ram-association-stage

Add setup terraform step to ram association jobs
  • Loading branch information
richgreen-moj authored Dec 16, 2024
2 parents 023440f + 729e491 commit 7dacfd0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/core-vpc-development-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ jobs:
role-to-assume: "arn:aws:iam::${{ env.ACCOUNT_NUMBER }}:role/github-actions-apply"
role-session-name: githubactionsrolesession
aws-region: ${{ env.AWS_REGION }}

- name: Setup Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_wrapper: false

- name: Run RAM association if needed
run: bash scripts/get-applications-and-run-ram.sh ${TF_ENV}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/core-vpc-preproduction-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ jobs:
role-to-assume: "arn:aws:iam::${{ env.ACCOUNT_NUMBER }}:role/github-actions-apply"
role-session-name: githubactionsrolesession
aws-region: ${{ env.AWS_REGION }}

- name: Setup Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_wrapper: false

- name: Run RAM association if needed
run: bash scripts/get-applications-and-run-ram.sh ${TF_ENV}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/core-vpc-production-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ jobs:
role-session-name: githubactionsrolesession
aws-region: ${{ env.AWS_REGION }}

- name: Setup Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_wrapper: false

- name: Run RAM association if needed
run: bash scripts/get-applications-and-run-ram.sh ${TF_ENV}

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/core-vpc-test-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ jobs:
role-session-name: githubactionsrolesession
aws-region: ${{ env.AWS_REGION }}

- name: Setup Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_wrapper: false

- name: Run RAM association if needed
run: bash scripts/get-applications-and-run-ram.sh ${TF_ENV}

Expand Down

0 comments on commit 7dacfd0

Please sign in to comment.