From 729e4915abe0a365ef5df2a62cf56a2627cadd5d Mon Sep 17 00:00:00 2001 From: Rich Green Date: Mon, 16 Dec 2024 10:15:39 +0000 Subject: [PATCH] Add setup terraform step to ram association jobs as latest version of ubuntu (24.04) does not have it pre-installed in GHA runners --- .github/workflows/core-vpc-development-deployment.yml | 5 +++++ .github/workflows/core-vpc-preproduction-deployment.yml | 5 +++++ .github/workflows/core-vpc-production-deployment.yml | 5 +++++ .github/workflows/core-vpc-test-deployment.yml | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/.github/workflows/core-vpc-development-deployment.yml b/.github/workflows/core-vpc-development-deployment.yml index 639758095..4d6ba3666 100644 --- a/.github/workflows/core-vpc-development-deployment.yml +++ b/.github/workflows/core-vpc-development-deployment.yml @@ -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} diff --git a/.github/workflows/core-vpc-preproduction-deployment.yml b/.github/workflows/core-vpc-preproduction-deployment.yml index 0539e4be8..7c641c6e6 100644 --- a/.github/workflows/core-vpc-preproduction-deployment.yml +++ b/.github/workflows/core-vpc-preproduction-deployment.yml @@ -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} diff --git a/.github/workflows/core-vpc-production-deployment.yml b/.github/workflows/core-vpc-production-deployment.yml index 85c6842a3..4b9559103 100644 --- a/.github/workflows/core-vpc-production-deployment.yml +++ b/.github/workflows/core-vpc-production-deployment.yml @@ -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} diff --git a/.github/workflows/core-vpc-test-deployment.yml b/.github/workflows/core-vpc-test-deployment.yml index 22a16f4ae..46dba5122 100644 --- a/.github/workflows/core-vpc-test-deployment.yml +++ b/.github/workflows/core-vpc-test-deployment.yml @@ -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}