Skip to content

Commit

Permalink
v1.10.0 - output-json, compact-warnings improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Zordrak committed Dec 3, 2024
1 parent 5e9dccd commit 7221be3
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 76 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## 1.10.0 (02/12/2024)

FEATURES:

* Apply/Refresh/Destroy actions now output a terraform.output.json file containing
the contents of terraform output -json -no-color. On by default, can be disabled.
* Ignore -w/--compact-warnings for commands that don't support it so the user
can specify it all the time without worrying which commands support it.

BUG FIXES:

* Fix plugin-cache base directory from `$(pwd)` to `${base_path}` so it is correctly
located if terraform.sh is invoked from somewhere other than the project root.

CHORES:

* Fix inappropriate double-quoting of non-interpolated strings.

## 1.9.1 (06/09/2024)

BUG FIXES:
Expand Down
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,20 @@ The terraformscaffold script is invoked as bin/terraform.sh. Once a state bucket

```bash
bin/terraform.sh \
-a/--action `action` \
-b/--bucket-prefix `bucket_prefix` \
-c/--component `component_name` \
-e/--environment `environment` \
-g/--group `group` (optional) \
-i/--build-id `build_id` (optional) \
-l/--lockfile `mode` (optional) \
-p/--project `project` \
-r/--region `region` \
-d/--detailed-exitcode (optional) \
-t/--lock-table (optional) \
-n/--no-color (optional) \
-w/--compact-warnings (optional) \
-a/--action `action` \
-b/--bucket-prefix `bucket_prefix` \
-c/--component `component_name` \
-e/--environment `environment` \
-g/--group `group` (optional) \
-i/--build-id `build_id` (optional) \
-l/--lockfile `mode` (optional) \
-p/--project `project` \
-r/--region `region` \
-d/--detailed-exitcode (optional) \
-j/--disable-output-json (optional) \
-t/--lock-table (optional) \
-n/--no-color (optional) \
-w/--compact-warnings (optional) \
-- \
<additional arguments to forward to the terraform binary call>
```
Expand All @@ -140,6 +141,7 @@ Where:
* `project`: The name of the project being deployed, as per the default bucket-prefix and state file keyspace
* `region` (optional): The AWS region name unique to all components and terraform processes. Defaults to the value of the _AWS_DEFAULT_REGION_ environment variable.
* `detailed-exitcode` (optional): Passes detailed exit code flag to terraform.
* `disable-output-json` (optional): Disables writing a terraform.output.json file when component outputs are updated
* `lock-table` (optional): Tells tfscaffold to use a DynamoDB Table with the same name as the S3 Bucket for state file locking
* `no-color` (optional): Passes no-color flag to terraform.
* `compact-warnings` (optional): Passes compact-warnings flag to terraform.
Expand Down
Loading

0 comments on commit 7221be3

Please sign in to comment.