Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fail to validate when there are multiple properties with the same name in a resource #1

Closed
cesar-rodriguez opened this issue Sep 13, 2017 · 1 comment
Labels

Comments

@cesar-rodriguez
Copy link
Contributor

cesar-rodriguez commented Sep 13, 2017

I've notices that terraform-validate doesn't properly handle the use case of multiple properties with the same name:

resource "aws_elb" "foo" {
  listener {
    lb_port            = 443
    lb_protocol        = "https"
    ssl_certificate_id = "${var.certificate_arn}"
  }
  listener {
    lb_port            = 443
    lb_protocol        = "https"
    ssl_certificate_id = "${var.certificate_arn}"
  }
}

I've seen this issue in:

  • aws_cloudfront_distribution
  • aws_elb
  • aws_redshift_parameter_group
cesar-rodriguez pushed a commit that referenced this issue Oct 6, 2018
cesar-rodriguez pushed a commit that referenced this issue Oct 1, 2020
Update to latest upstream
@cesar-rodriguez
Copy link
Contributor Author

This is no longer an issue as of Terrascan v1.0.0

Avanti19 pushed a commit to Avanti19/terrascan that referenced this issue Jul 29, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant