File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 44
44
role-session-name : ${{ inputs.role_session_name }}
45
45
aws-region : ${{ inputs.aws_region }}
46
46
47
- - name : Create Parameters file
48
- run : echo '${{ inputs.staging_tfvars_json }}' > staging.tfvars.json
47
+ - name : Download Staging Variables
48
+ uses : actions/download-artifact@v3
49
+ with :
50
+ name : staging-variables
51
+ path : ${{ inputs.working_directory }}
49
52
50
53
- name : Setup Terraform
51
54
uses : hashicorp/setup-terraform@v2
58
61
59
62
- name : Terraform Staging Apply
60
63
id : apply-staging
61
- run : terraform apply -no-color -var-file=staging.tfvars.json
64
+ run : terraform apply -auto-approve -input=false -var-file=staging.tfvars.json
62
65
env :
63
66
TF_WORKSPACE : staging
64
67
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 44
44
role-session-name : ${{ inputs.role_session_name }}
45
45
aws-region : ${{ inputs.aws_region }}
46
46
47
- - name : Create Parameters file
48
- run : echo '${{ inputs.prod_tfvars_json }}' > prod.tfvars.json
47
+ - name : Download Prod Variables
48
+ uses : actions/download-artifact@v3
49
+ with :
50
+ name : prod-variables
51
+ path : ${{ inputs.working_directory }}
49
52
50
53
- name : Setup Terraform
51
54
uses : hashicorp/setup-terraform@v2
58
61
59
62
- name : Terraform Prod Apply
60
63
id : apply-prod
61
- run : terraform apply -no-color -var-file=prod.tfvars.json
64
+ run : terraform apply -auto-approve -input=false -var-file=prod.tfvars.json
62
65
env :
63
66
TF_WORKSPACE : prod
64
67
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments