Hello all,
We’ve released the following versions of Consul-Terraform-Sync (CTS):
-
v0.5.0 and v0.5.0+ent
-
v0.5.1 and v0.5.1+ent
In these releases we have a number of breaking changes, deprecations, and new features. Two major features that were introduced are the Create Task CLI and Delete Task CLI which allows users to make runtime changes to the tasks that CTS runs. A number of configuration deprecations and replacements were made to the task and service config blocks to reduce inconsistency and confusion. Please see below for more details.
Thanks!
Consul Automation Tooling Team
RELEASE: Consul-Terraform-Sync 0.5.0 - Minor 02/23/2022
RELEASE: Consul-Terraform-Sync 0.5.1 - Patch 02/24/2022
RELEASE BLOG: Consul-Terraform-Sync 0.5 Adds New APIs and UX Improvements
KNOWN ISSUES:
-
Re-creating a task using the task creation API/CLI after Consul restart can result in an error. [GH-701]
-
Creating a task with the same name as a deleted task, where the deleted task includes a
condition "schedule", can leave CTS in a bad state [GH-715] -
Creating a task with multiple module inputs using JSON requires specific JSON format. [GH-714]
-
(Enterprise Only) Regression with Terraform Cloud driver’s
required_providersconfiguration which leads the driver to potentially attempt to retrieve an incorrect provider source and version [GH-728] Note: Fixed in v0.5.1
BREAKING CHANGES:
-
Stop monitoring and including non-passing service instances in
terraform.tfvarsby default. CTS should only monitor passing service instances unless configured otherwise. [GH-430] -
Removed
driver.terraform.working_dirconfiguration option that was deprecated in v0.3.0. Use top-levelworking_dirto configure parent directory for all tasks ortask.working_dirto configure per task. [GH-548] -
Require that
condition "catalog-services"block’sregexpfield be configured instead of relying on previous default behavior. [GH-574] -
Change default value of
source_includes_varfield from false to true for all types ofconditionblocks. [GH-578]
FEATURES:
-
Support for deleting an existing task through the API and CLI. [GH-522]
-
Support for creating a task through the API and CLI. [GH-522]
-
Support for retrieving information about an existing task through the API. [GH-681]
-
Support for
-auto-approveoption to skip interactive approval prompts in the CLI. [GH-576]
IMPROVEMENTS:
-
Tasks will now trigger only after the
mintime of thebuffer_periodconfiguration has transpired. Previously tasks would trigger immediately, once, before honoring the minimum buffer period time. [GH-642] -
Support configuring a task’s
condition "services"andsource_input "services"blocks with query parameters:datacenter,namespace,filter, andcts_user_defined_meta. [GH-357] -
Support new
namesfield for configuring a task’scondition "services"andsource_input "services"blocks as an optional alternative toregexpto list monitored services by name. [GH-561] -
Support
source_includes_varfield for a task’scondition "services"block. [GH-584] -
Expand
source_inputblock usage to dynamic tasks and support multiplesource_inputblocks per task. [GH-607] -
Initialize disabled tasks, which allows for earlier validation of a task. [GH-625]
DEPRECATIONS:
-
(Enterprise Only) Deprecate
workspace_prefixfor the Terraform Cloud driver that adds unexpected-character added between the prefix and task name. Use the newworkspaces.prefixoption instead. [GH-442]- If the
workspace_prefixoption is in use by CTS v0.3.x or v0.4.x for the Terraform Cloud driver, visit GH-442 for upgrade guidelines.
- If the
-
Deprecate
portCLI option. Usehttp-addroption instead. [GH-617] -
Deprecate
servicesfield in task configuration. Usecondition "services"orsource_input "services"instead. [GH-669] -
Deprecate
serviceblock in configuration. To replace usage, first upgrade the associated task configservicesfield to acondition "services"orsource_input "services". Then move theserviceblock fields into the newconditionorsource_inputblock. [GH-670] -
Deprecate
sourcefield in task configuration. Renamesourcetomodulein configuration. [GH-566] -
Deprecate
source_inputblock in task configuration. Renamesource_inputtomodule_inputin configuration. [GH-567] -
Deprecate
source_includes_varfield in task configuration’sconditionblock. Renamesource_includes_vartouse_as_module_inputin configuration. [GH-568] -
Deprecate non-status, config-related information from the Task Status API’s response payload. Use the Get Task API instead to retrieve the deprecated information. [GH-569]
BUG FIXES:
-
Fix CLI client enable task command timing out when buffer period is enabled [GH-516]
-
Fix Services condition when configured with regex and Catalog Services condition to use cached indexes for Consul API blocking queries. [GH-529]
-
(Enterprise Only) Fix task not triggering after re-enabled when running with the TFC driver.