|
8 | 8 | ## |
9 | 9 | # Set Script Version |
10 | 10 | ## |
11 | | -readonly script_ver='1.10.0'; |
| 11 | +readonly script_ver='1.10.2'; |
12 | 12 |
|
13 | 13 | ## |
14 | 14 | # Standardised failure function |
@@ -108,7 +108,7 @@ compact-warnings (optional): |
108 | 108 | Append -compact-warnings to all terraform calls |
109 | 109 |
|
110 | 110 | disable-output-json (optional): |
111 | | - Don't write outputs to the terraform.output.json file |
| 111 | + Don't write outputs to the .terraform.output.json file |
112 | 112 |
|
113 | 113 | lockfile: |
114 | 114 | Append -lockfile=MODE to calls to terraform init |
@@ -736,7 +736,7 @@ case "${action}" in |
736 | 736 |
|
737 | 737 | # We're going to write a new one of these, and we don't want the user |
738 | 738 | # thinking the stale file is up to date if we don't update it successfully |
739 | | - [ "${output_json}" == 'true' ] && [ -f 'terraform.output.json' ] && echo 'Deleting old terraform.output.json' && rm -f terraform.output.json; |
| 739 | + [ "${output_json}" == 'true' ] && [ -f '.terraform.output.json' ] && echo "Deleting old outputs file: $(pwd)/.terraform.output.json" && rm -f .terraform.output.json; |
740 | 740 |
|
741 | 741 | # Support for terraform <0.10 is now deprecated |
742 | 742 | if [ "${action}" == 'apply' ]; then |
@@ -810,8 +810,8 @@ case "${action}" in |
810 | 810 | fi; |
811 | 811 |
|
812 | 812 | if [ "${output_json}" == 'true' ]; then |
813 | | - echo 'Writing terraform.output.json'; |
814 | | - terraform output -json -no-color > terraform.output.json; |
| 813 | + echo "Writing terraform output to $(pwd)/.terraform.output.json"; |
| 814 | + terraform output -json -no-color > .terraform.output.json; |
815 | 815 | fi; |
816 | 816 |
|
817 | 817 | if [ -f 'post.sh' ]; then |
|
0 commit comments