Skip to content

Commit

Permalink
Update terraform/terraform.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fmdlc committed Sep 26, 2021
1 parent 3cd44a1 commit 87b331d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ workflow:
- rm -rf ${TF_ROOT}/.terraform.lock.hcl
script:
- base64 -d ${TF_CONFIG} > ${HOME}/.terraform.rc
- ls -al ${HOME}
- terraform init -backend=true -backend-config=./vars/$ENV/backend.tf
- terraform plan -out=state.tfplan -var-file=./vars/$ENV/terraform.tfvars
artifacts:
Expand All @@ -33,5 +34,6 @@ workflow:
allow_failure: false
stage: terraform-apply
script:
- ls -al ${HOME}
- terraform apply -auto-approve "state.tfplan"
when: manual

0 comments on commit 87b331d

Please sign in to comment.