Skip to content

Commit

Permalink
Update terraform_plan.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Oct 9, 2024
1 parent 8fec5b5 commit 1631b02
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/terraform_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 1631b02

Please sign in to comment.