Skip to content

Commit fdfacd9

Browse files
committed
v1.10.2 - s/terraform.output.json/.terraform.output.json/g
1 parent 1a324ef commit fdfacd9

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
**/.terraform/*
88

99
# Terraform Output
10-
**/terraform.output.json
10+
**/.terraform.output.json
1111

1212
# Scaffold Plugin Cache
1313
plugin-cache/*

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.10.2 (02/12/2024)
2+
3+
BUG FIXES:
4+
5+
* Correct `terraform.output.json` to `.terraform.output.json`
6+
17
## 1.10.1 (02/12/2024)
28

39
BUG FIXES:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Where:
141141
* `project`: The name of the project being deployed, as per the default bucket-prefix and state file keyspace
142142
* `region` (optional): The AWS region name unique to all components and terraform processes. Defaults to the value of the _AWS_DEFAULT_REGION_ environment variable.
143143
* `detailed-exitcode` (optional): Passes detailed exit code flag to terraform.
144-
* `disable-output-json` (optional): Disables writing a terraform.output.json file when component outputs are updated
144+
* `disable-output-json` (optional): Disables writing a `.terraform.output.json` file when component outputs are updated
145145
* `lock-table` (optional): Tells tfscaffold to use a DynamoDB Table with the same name as the S3 Bucket for state file locking
146146
* `no-color` (optional): Passes no-color flag to terraform.
147147
* `compact-warnings` (optional): Passes compact-warnings flag to terraform.

bin/terraform.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
##
99
# Set Script Version
1010
##
11-
readonly script_ver='1.10.0';
11+
readonly script_ver='1.10.2';
1212

1313
##
1414
# Standardised failure function
@@ -108,7 +108,7 @@ compact-warnings (optional):
108108
Append -compact-warnings to all terraform calls
109109
110110
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
112112
113113
lockfile:
114114
Append -lockfile=MODE to calls to terraform init
@@ -736,7 +736,7 @@ case "${action}" in
736736

737737
# We're going to write a new one of these, and we don't want the user
738738
# 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;
740740

741741
# Support for terraform <0.10 is now deprecated
742742
if [ "${action}" == 'apply' ]; then
@@ -810,8 +810,8 @@ case "${action}" in
810810
fi;
811811

812812
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;
815815
fi;
816816

817817
if [ -f 'post.sh' ]; then

0 commit comments

Comments
 (0)