PyTerraBackTyl icon indicating copy to clipboard operation
PyTerraBackTyl copied to clipboard

Changes to JSON output in Terraform 0.12 might break some automatic parsing features (e.g.: the Slack plugin)

Open dev-dull opened this issue 6 years ago • 3 comments

Hasicorp announced a number of improvements that will come to Terraform 0.12 including 1:1 mapping of Terraform HCL parameters and the tfstate JSON file. PyTerraBackTYL does some automated parsing of the state file (specifically to gather hostnames) which may break depending on how significantly the JSON format changes.

Reference: https://www.hashicorp.com/blog/terraform-0-1-2-preview

The fix here will be mostly (if not completely) a configuration change: The JSON paths defined in the HELPER_HOSTNAME_QUERY_MAP configuration item of config.yaml will need to be updated to match the new hostname locations.

In addition to the configuration change, the hard-coded JSON path in abc_tylstore.TYLHelpers.get_hostnames_from_tfstate(), which is used to identify the provider type, may also need updated.

dev-dull avatar Jun 28 '18 20:06 dev-dull