Releases: digitickets/terraform-aws-cli
v7.1.1
v7.1.1 - 2025/10/08
- Added validation to
var.aws_cli_commandto stop an empty command being asked for. Slight improvement as this means
the empty command is evaluated before it is passed to the AWS CLI. - Updated to v1.11.4 for testing.
- Added v1.13.3 for testing.
- Remove
.terraform.lock.hclfiles from Terraform modules as it is not required. - Ignore
.terraform.lock.hcl. - Ignore MacOS
.DS_Storefiles. - Upgraded Terraform, Providers, TFLint, and Pre-Commit versions.
v7.1.0
v7.1.0 - 2025/07/03
- Added v1.12.2 for testing
- Improved support for retrying, both in terms of the retry mode and the number of retries via the new
var.retries
variable. Thank you Roma Ryzhyi.
v7.0.1
V7.0.1 - 2025/04/28
- Add v1.11.3, and reduced the number of builds to just the latest in the minor versions of Terraform from 1.6.0 onwards.
- Minor reorganization to match Terraform Standard Module Structure.
- Small enhancement for TFLint when aliased providers are used.
- Added warning to README.md regarding destructive use. Thank you, Yves Vogl.
v7.0.0: Merge branch 'issue_19_json_decoding'
v7.0.0 - 2024/08/06
-
Fix a typo in the description for the
var.external_id. -
Fix handling of invalid JSON returned from the AWS CLI. Thank you 홍수민 and horststumpf.
-
Introduced 2 new outputs:
output.result_raw = string- This will contain the raw output from the AWS CLI call.output.result_was_decoded = bool- This will indicated if the output from the AWS CLI call was successfully JSON decoded.
These were introduced as some of the results from the AWS CLI are not JSON decodable. For example
aws ec2 create-tagsreturns nothing.
v6.1.0
v6.1.0 - 2024/01/31
- Added testing for Terraform 1.7+
- FIX : If
var.profileandvar.assume_role_arnare used, then continuing to usevar.profileinvalidates the
assumed role. Theaws_cli_runner.shnow no longer usesvar.profilewhen a role has been successfully assumed.
Thank you Garrett Blinkhorn.
v6.0.2 - 2024/01/31
v6.0.2 - 2024/01/31
- FIX : Typo in
aws_cli_runner.shwhen running assuming a role. Thank you Garrett Blinkhorn.
v6.0.1
v6.0.0
v6.0.0 - 2023/12/15
- Added error handling for errors generated by the AWS CLI to stop the Terraform Plan. The error is also present in the
terraform showoutput in thechecks[*].instances[*].problemsnode (See the expected plan errors when an AWS error is triggered). - Added a lot of Terraform variable validation to ensure the supplied parameters match the limits imposed by AWS (the minimum/maximum length, allowable characters, rules on first characters, etc.)
- Rewritten the AWS CLI Runner script to not need to deal with wrapping parameters in quotes.
- Rewritten tests, mainly to reduce the amount of effort to configure them in the future.
BACKWARDS INCOMPATIBILITY
-
The
debug_log_filenamevariable has been removed. As the new code will generate more files to assist in any debugging if it becomes necessary, a new variablealternative_pathhas been added. If set, this path will contain the following files:jq_data.json- The data managed byjqto get the Terraform variables accessible to AWS CLI.jq_error.log- Any errors generated byjqwhilst attempting to parse the supplied JSON.aws_sts.json- The data returned by AWS when assuming a role.aws_sts_error.log- The full debug and any errors when assuming a role.aws_call.json- The data returned by AWS when running AWS CLI for the required call.aws_call_error.log- The full debug and any errors when running AWS CLI for the required call.results.json- The results of the AWS CLI call that are fed back to Terraform.
But to reduce the amount of files left behind, as standard, all files except results.json are deleted before Terraform is given the results.json file to process.
If you need to have access to the other files, then setting the environment variable MODULE_TERRAFORM_AWS_CLI_RETAIN_LOGS to true will retain all the logs shown above.
If the alternative_path variable is not set, then a default path will be used based upon ./temp/[hash]. The hash is the md5 of all the values of the variables supplied to the module.
v5.2.0
v5.2.0 - 2023/07/20
- Fixed issue introduce in v5.1.0 regarding the use of
var.external_id. - Introduces support for
var.profileto allow you to supply your own AWS profile. Thank you coopengo-glecomte. - Introduces support for
var.regionto allow you to supply your own AWS region. - Refactored tests due to changes within Terraform.
v5.1.0
v5.1.0 - 2023/07/20
- Introduce support for
var.external_id. Thank you Joshua Rosen