PaloAltoNetworks / terraform-provider-prismacloud

Terraform PrismaCloud provider
https://www.terraform.io/docs/providers/prismacloud/
Mozilla Public License 2.0
54 stars 65 forks source link

Support policySubTypes in data source `prismacloud_policies` #281

Closed jgrumboe closed 5 months ago

jgrumboe commented 6 months ago

Is your feature request related to a problem?

I'd like the prismacloud_policies data source https://registry.terraform.io/providers/PaloAltoNetworks/prismacloud/latest/docs/data-sources/policies to include the policySubTypes.

Describe the solution you'd like

I'd like to select all enabled policies, but then filter out the ones that have "build" as policySubType included. Afterward I like to add all of the still selected policies to an alert rule.

Currently I get the following error for some rules in our setup: Error(msg:compute_policy_only_allowed_for_cag_rule severity:error subject:) which is because the policy is a "build" subtype policy.

AnushreeHS commented 5 months ago

v1.5.4 adds support for this capability.

jgrumboe commented 5 months ago

Thank you, already tested it and works fine.