diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index a6c14fc21..c53cecdd7 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -11,8 +11,6 @@ on: jobs: deploy: runs-on: ubuntu-latest - env: - TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }} steps: - name: Checkout Source Code @@ -21,7 +19,7 @@ jobs: - name: Set up Terraform uses: hashicorp/setup-terraform@v2 with: - terraform_version: 1.5.3 + terraform_version: 1.10.3 - name: Select workspace run: | @@ -29,6 +27,8 @@ jobs: terraform workspace select "$ENVIRONMENT" || terraform workspace new "$ENVIRONMENT" - name: Terraform Init and Apply + env: + TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }} run: | terraform init terraform plan -out=tfplan