terraform_validate icon indicating copy to clipboard operation
terraform_validate copied to clipboard

Find resource by name

Open safv12 opened this issue 6 years ago • 2 comments

There is a way to find single resource using the name instead the type?

If I want to test properties with different configuration in two resources of the same type, there is a way to realize this validation?

safv12 avatar May 25 '18 16:05 safv12

I'm also looking for an answer to this issue, I have 7 VPC's in a single .tf file and the tests are failing as I can't check the cidr_blocks against specific ones

pageholder avatar Oct 24 '18 12:10 pageholder

There is a way to find single resource using the name instead the type?

If I want to test properties with different configuration in two resources of the same type, there is a way to realize this validation?

find a link to a work around below, I needed this urgently for a PoC I was doing in work so emailed the module creator directly to see if he knew a way to do it:

https://gist.github.com/elmundio87/8c1cb4f8f2a7eb3979cfd8658754864e

pageholder avatar Oct 25 '18 07:10 pageholder