From f470ae6ec7aba83ad6c2a774a930e8eac934603a Mon Sep 17 00:00:00 2001 From: David John Arnold Jr Date: Mon, 23 Sep 2024 11:09:26 -0700 Subject: [PATCH] Update terraform_apply.yaml --- .github/workflows/terraform_apply.yaml | 28 +++++++++----------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/.github/workflows/terraform_apply.yaml b/.github/workflows/terraform_apply.yaml index b48c1ce..b70698e 100644 --- a/.github/workflows/terraform_apply.yaml +++ b/.github/workflows/terraform_apply.yaml @@ -13,20 +13,15 @@ jobs: # This workflow contains a single job called "build" Apply: # The type of runner that the job will run on - runs-on: [ automation-repos ] + runs-on: [ "229685449397" ] env: - AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" - AWS_ACCESS_KEY_ID: "${{ vars.AWS_ACCESS_KEY_ID }}" - AWS_DEFAULT_REGION: "${{ vars.AWS_DEFAULT_REGION }}" - GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}" + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - - uses: CSVD/gh-actions-setup-node@v3 with: node-version: 16 @@ -35,15 +30,6 @@ jobs: with: terraform_wrapper: false terraform_version: ${{ vars.terraform_version }} - - - name: Terraform Format - id: fmt - run: | - terraform fmt -check - - - name: Autoformat Halt - if: env.auto_format == 'true' - run: exit 1 - name: Terraform Init id: init @@ -53,7 +39,11 @@ jobs: id: validate run: terraform validate - - name: Terraform Apply + - name: Terraform Plan id: plan - run: terraform apply -auto-approve - continue-on-error: true + run: terraform validate + +# - name: Terraform Apply +# id: plan +# run: terraform apply -auto-approve +# continue-on-error: true