re_match(concat("", ["^.*\\.", resource.name, "\\..*$"]), r.properties.subnet_id); is incorrect and need to match with resource.id as per document which is impossible or need to find some other way for validation #189
Labels
bug
Something isn't working
In file https://github.com/prancer-io/prancer-compliance-test/blob/master/azure/terraform/vnetsubnets.rego
re_match(concat("", ["^.*\\.", resource.name, "\\..*$"]), r.properties.subnet_id);
is incorrect and need to match withresource.id
as per https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet_network_security_group_associationmatching with id is impossible during compile time as id will only available from tf output file.
We need to find some other way to match the subnet association with vnet.
The text was updated successfully, but these errors were encountered: