Is your feature request related to a problem? Please describe.
When deploying a VPC there are automatically any-any-allow and deny network policies (PBR). User need to remove the any-any-allow, but again as it's automatically created along with a VPC he/she don't see a way to prevent its creation or delete it via code.
We tried to achieve the scenario and realized,
- It's not possible to prevent the policy creation through TF code(as the policy is created by default during VPC create).
- It's not possible to delete the policy from TF side as well since it is created by default.(TF doesn't know what the UUID is, TF can delete only when they are deployed through it)
One option we thought of but faced this issue,
1. Fetch the list of network policies using TF with Filter.
2. Fetch the UUID and Import it.
3. Destroy it. But it can't be achieved now due to the error
resource nutanix_pbr_v2 doesn't support import
IMHO: To achieve this scenario we need to add the support for importing network policies.
Is your feature request related to a problem? Please describe.
When deploying a VPC there are automatically any-any-allow and deny network policies (PBR). User need to remove the any-any-allow, but again as it's automatically created along with a VPC he/she don't see a way to prevent its creation or delete it via code.
We tried to achieve the scenario and realized,
One option we thought of but faced this issue,
IMHO: To achieve this scenario we need to add the support for importing network policies.