You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: Resources should be properly tagged
In order to keep track of resource ownership
As engineers
We'll enforce tagging on all resources
Scenario Outline: Name tag
Given I have resource that supports tags defined
Then it must contain tags
And it must contain <tags>
Examples:
| tags |
| Name |
result:
terraform-compliance v0.4.11 initiated
Steps : /usr/local/lib/python2.7/site-packages/terraform_compliance/steps
Features : /Users/demianginther/git/tf-modules/compliance
TF Files : /var/folders/zf/f1h382nn35z3gd1kv92bw6r80000gn/T/tmpxTN1V9 (.)
Reading terraform files.
All HCL files look good.
Running tests.
Feature: Resources should be properly tagged # /Users/demianginther/git/tf-modules/compliance/tags.feature
In order to keep track of resource ownership
As engineers
We'll enforce tagging on all resources
1 features (0 passed)
1 scenarios (0 passed)
3 steps (0 passed)
Run 1547251063 finished within a moment
Error: Hook 'load_terraform_data' from /usr/local/lib/python2.7/site-packages/terraform_compliance/steps/terrain.py:6 raised: 'SyntaxError: invalid syntax (<string>, line 1)'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/radish/hookregistry.py", line 121, in call
func(model, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/terraform_compliance/steps/terrain.py", line 12, in load_terraform_data
enable_resource_mounting(tf_conf.terraform_config)
File "/usr/local/lib/python2.7/site-packages/terraform_compliance/extensions/terraform_validate.py", line 29, in enable_resource_mounting
enable_resource_mounting(tf_conf, sub_value, sub_resource)
File "/usr/local/lib/python2.7/site-packages/terraform_compliance/extensions/terraform_validate.py", line 29, in enable_resource_mounting
enable_resource_mounting(tf_conf, sub_value, sub_resource)
File "/usr/local/lib/python2.7/site-packages/terraform_compliance/extensions/terraform_validate.py", line 37, in enable_resource_mounting
change_value_in_dict(tf_conf, target, {source: processing_resource})
File "/usr/local/lib/python2.7/site-packages/terraform_compliance/common/helper.py", line 119, in change_value_in_dict
target = eval('target_dictionary{}'.format(path_to_adjust))
File "<string>", line 1
target_dictionary["resource"]["!var"]["alb_enabled && !var"]["double_elb_listener_enabled && var"]["env == "prod" ? 1 : 0"]
^
SyntaxError: invalid syntax
Having an issue here:
result:
Relevant Terraform code:
Any ideas?
The text was updated successfully, but these errors were encountered: