terraform_validate
terraform_validate copied to clipboard
Find resource by name
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?
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
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