From 20184d96e9b3af2a5c0af4f217a71abee32606a5 Mon Sep 17 00:00:00 2001 From: Oloruntobi Olurombi Date: Thu, 29 Aug 2024 23:55:36 +0100 Subject: [PATCH] add init job and rename terraform apply --- .github/workflows/eks-setup.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/eks-setup.yaml b/.github/workflows/eks-setup.yaml index f17330a..adc50c0 100644 --- a/.github/workflows/eks-setup.yaml +++ b/.github/workflows/eks-setup.yaml @@ -19,6 +19,16 @@ jobs: aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ env.AWS_REGION }} + TerraformInit: + runs-on: ubuntu-latest + needs: LogInToAWS + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Initialize Terraform + run: terraform init + TerraformPlan: runs-on: ubuntu-latest needs: LogInToAWS @@ -32,7 +42,7 @@ jobs: - name: Plan Terraform run: terraform plan - TerraformApply: + TerraformApply-InstallTools: runs-on: ubuntu-latest needs: TerraformPlan steps: