diff --git a/.github/workflows/terraform_plan.yaml b/.github/workflows/terraform_plan.yaml index f8b388d..6183776 100644 --- a/.github/workflows/terraform_plan.yaml +++ b/.github/workflows/terraform_plan.yaml @@ -13,7 +13,7 @@ jobs: # This workflow contains a single job called "build" Plan: # The type of runner that the job will run on - runs-on: [ "229685449397" ] + runs-on: [ "csvd-ec2" ] env: GITHUB_APP_INSTALLATION_ID: ${{ vars.GH_APP_INSTALLATION_ID }} @@ -27,10 +27,8 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - name: curl github - run: curl https://github.e.it.census.gov - - name: Setup AWS Credentials + id: aws_auth uses: CSVD/aws-auth@main - name: Setup GITHUB Credentials @@ -49,6 +47,9 @@ jobs: env: GITHUB_TOKEN: $GITHUB_TOKEN NO_PROXY: "*.census.gov" + AWS_ACCESS_KEY_ID: ${{ steps.aws_auth.outputs.aws_access_key_id }} + AWS_SECRET_ACCESS_KEY: $${{ steps.aws_auth.outputs.aws_secret_access_key }} + AWS_SESSION_TOKEN: ${{ steps.aws_auth.outputs.aws_session_token }} - name: Terraform Plan uses: CSVD/terraform-plan@main @@ -59,3 +60,9 @@ jobs: varfile: varfiles/${{ vars.terraform_workspace }}.tfvars download_cache: true setup_terraform: false + env: + AWS_ACCESS_KEY_ID: ${{ steps.aws_auth.outputs.aws_access_key_id }} + AWS_SECRET_ACCESS_KEY: $${{ steps.aws_auth.outputs.aws_secret_access_key }} + AWS_SESSION_TOKEN: ${{ steps.aws_auth.outputs.aws_session_token }} + GITHUB_TOKEN: $GITHUB_TOKEN +