From 4965e03c8458d889dcbe9bdbff16b0b7f829c49d Mon Sep 17 00:00:00 2001 From: gaganhattar Date: Sat, 13 Jul 2024 00:05:01 -0700 Subject: [PATCH] testing github workspace trigger 10 --- .github/workflows/terraform.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index a2ccd2733..4d330eb43 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -43,7 +43,7 @@ jobs: # jobs are steps to excute in the pipeline run: shell: bash working-directory: ./terraform #action will cd into this dir - + steps: - name: "checkout the source code" uses: actions/checkout@v4 #pre-defined actions in guthub marketplace @@ -51,14 +51,22 @@ jobs: # jobs are steps to excute in the pipeline token: ${{secrets.GIT_ACTION_TOKEN}} fetch-depth: 0 ref: 'stage' - + + - name: check environment vars + run: | + echo "aws access key is ${{ secrets.AWS_ACCESS_KEY_ID }}" + echo "aws secret is ${{ secrets.AWS_SECRET_ACCESS_KEY }}" + - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 + with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-2 + + - name: Setup Terraform with specified version on the runner/container uses: hashicorp/setup-terraform@v3