Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

terraform interpolation support #39

@karthikeayan

Description

@karthikeayan

Is there a plan to add support for Terraform Interpolations?

resource "aws_instance" "web" {
  ami           = "some_ami"
  instance_type = "t2.micro"

  tags = "${merge(var.tags, map("Name", "${var.cluster_name}-eks_cluster_sg"))}"
}

ERROR: test_aws_ebs_volume (main.TestEncryptionAtRest)

Traceback (most recent call last):
File "check_tag.py", line 16, in test_aws_ebs_volume
self.v.resources(tagged_resources).property('tags').should_have_properties(required_tags)
File "/home/karthik/.local/lib/python2.7/site-packages/terraform_validate/terraform_validate.py", line 199, in should_have_properties
property_names = property.property_value.keys()
AttributeError: 'unicode' object has no attribute 'keys'


Ran 1 test in 0.043s

FAILED (errors=1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions