mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-30 13:10:56 +00:00
need to do seperate work to get terraform init working in pipeline
This commit is contained in:
parent
96089ad0c3
commit
39c29f2ac2
1 changed files with 14 additions and 14 deletions
28
.github/workflows/teraform.yml
vendored
28
.github/workflows/teraform.yml
vendored
|
|
@ -36,22 +36,22 @@ jobs:
|
|||
if: env.AWS_ACCESS_KEY_ID != ''
|
||||
run: |
|
||||
echo "Setting up AWS Credentials..."
|
||||
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
|
||||
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
|
||||
aws configure set region $AWS_REGION
|
||||
# aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
|
||||
# aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
|
||||
# aws configure set region $AWS_REGION
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: hashicorp/setup-terraform@v3
|
||||
# - name: Setup Terraform
|
||||
# uses: hashicorp/setup-terraform@v3
|
||||
|
||||
- name: Terraform Init
|
||||
run: terraform init
|
||||
# - name: Terraform Init
|
||||
# run: terraform init
|
||||
|
||||
- name: Terraform Format Check
|
||||
run: terraform fmt -check
|
||||
# - name: Terraform Format Check
|
||||
# run: terraform fmt -check
|
||||
|
||||
- name: Terraform Plan
|
||||
run: terraform plan -out=tfplan
|
||||
# - name: Terraform Plan
|
||||
# run: terraform plan -out=tfplan
|
||||
|
||||
- name: Terraform Apply (Main Branch Only)
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: terraform apply -auto-approve tfplan
|
||||
# - name: Terraform Apply (Main Branch Only)
|
||||
# if: github.ref == 'refs/heads/main'
|
||||
# run: terraform apply -auto-approve tfplan
|
||||
Loading…
Add table
Reference in a new issue