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 588dbad commit 1b96a7e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/terraform_apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,10 @@ jobs:
with:
node-version: 16

- uses: CSVD/gh-actions-setup-terraform@v2
with:
terraform_wrapper: false
terraform_version: ${{ vars.terraform_version }}

- 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
cat aws_credentials.json
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`
Expand All @@ -45,17 +39,17 @@ jobs:
- name: Terraform Init
id: init
run: terraform init -upgrade
run: /opt/tfenv/bin/terraform init -upgrade

- name: Terraform Validate
id: validate
run: terraform validate
run: /opt/tfenv/bin/terraform validate

- name: Terraform Plan
id: plan
run: terraform validate
run: /opt/tfenv/bin/terraform validate

# - name: Terraform Apply
# id: plan
# run: terraform apply -auto-approve
# run: /opt/tfenv/bin/terraform apply -auto-approve
# continue-on-error: true

0 comments on commit 1b96a7e

Please sign in to comment.