Skip to content

Commit

Permalink
Update terraform_apply.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Sep 23, 2024
1 parent ff13e65 commit 0e8892a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/terraform_apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,17 @@ jobs:
terraform_wrapper: false
terraform_version: ${{ vars.terraform_version }}

- uses: CSVD/gh-configure-aws-credentials@v4
with:
role-skip-session-tagging: true
aws-region: us-gov-east-1
- name: Setup AWS Credentials
id: aws_credentials
run: |
curl -qL -o aws_credentials.json http://169.254.170.2/${AWS_CONTAINER_CREDENTIALS_RELATIVE_URI} > aws_credentials.json
aws configure set region $AWS_REGION
aws configure set aws_access_key_id `jq -r '.AccessKeyId' aws_credentials.json`
echo AWS_ACCESS_KEY_ID=`jq -r '.AccessKeyId' aws_credentials.json` >> $GITHUB_ENV
aws configure set aws_secret_access_key `jq -r '.SecretAccessKey' aws_credentials.json`
echo AWS_SECRET_ACCESS_KEY=`jq -r '.SecretAccessKey' aws_credentials.json` >> $GITHUB_ENV
aws configure set aws_session_token `jq -r '.Token' aws_credentials.json`
echo AWS_SESSION_TOKEN=`jq -r '.Token' aws_credentials.json` >> $GITHUB_ENV
- name: Terraform Init
id: init
Expand Down

0 comments on commit 0e8892a

Please sign in to comment.