Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/main-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ jobs:
role-session-name: ${{ inputs.role_session_name }}
aws-region: ${{ inputs.aws_region }}

- name: Create Parameters file
run: echo '${{ inputs.staging_tfvars_json }}' > staging.tfvars.json
- name: Download Staging Variables
uses: actions/download-artifact@v3
with:
name: staging-variables
path: ${{ inputs.working_directory }}

- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
Expand All @@ -58,7 +61,7 @@ jobs:

- name: Terraform Staging Apply
id: apply-staging
run: terraform apply -no-color -var-file=staging.tfvars.json
run: terraform apply -auto-approve -input=false -var-file=staging.tfvars.json
env:
TF_WORKSPACE: staging
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 6 additions & 3 deletions .github/workflows/release-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ jobs:
role-session-name: ${{ inputs.role_session_name }}
aws-region: ${{ inputs.aws_region }}

- name: Create Parameters file
run: echo '${{ inputs.prod_tfvars_json }}' > prod.tfvars.json
- name: Download Prod Variables
uses: actions/download-artifact@v3
with:
name: prod-variables
path: ${{ inputs.working_directory }}

- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
Expand All @@ -58,7 +61,7 @@ jobs:

- name: Terraform Prod Apply
id: apply-prod
run: terraform apply -no-color -var-file=prod.tfvars.json
run: terraform apply -auto-approve -input=false -var-file=prod.tfvars.json
env:
TF_WORKSPACE: prod
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}