Skip to content

Commit

Permalink
Support for the new plan output format (#513)
Browse files Browse the repository at this point in the history
* Added functional tests for multi-module referencing

* Added more resources to the test

* Added support for processing modules recursively for multi-layer module structures

* Fixed a problem where some of the variables were spilling on other functions 🤦

* Optimised the code a bit

* Added comments for some of the methods

* Fixed the recursive function where we were referencing instead of copying data.

* Also updated the functional test about this

* Added 0.2 format_version support on JSON plans.

* Updated requirements_dev

* Fixed a typo in requirements_dev
  • Loading branch information
eerkunt authored Jun 25, 2021
1 parent db0c85f commit 94e0aaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## 1.3.19 (2020-06-25)
* Added new format support for terraform 1.0.1+ versions.

## 1.3.18 (2020-06-09)
* Fixed a problem where `terraform-compliance` fails to recognise some resources on a 2+ multi-layered module structure.

Expand Down
5 changes: 4 additions & 1 deletion terraform_compliance/extensions/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def __init__(self, filename, parse_it=True):
'0.15.',
'1.0.',
)
self.supported_format_versions = ['0.1']
self.supported_format_versions = [
'0.1',
'0.2'
]

self.raw = self._read_file(filename)
self.variables = None
Expand Down

0 comments on commit 94e0aaa

Please sign in to comment.