terraform-provider-sysdig
terraform-provider-sysdig copied to clipboard
feat(posture_zone): use public api for creating zones
trafficstars
This PR updates the sysdig_secure_posture_zone resource to use the public API for creating zones and then make an additional request to the /api/cspm/v1/policy/zone-policies endpoint to attach the created zone to existing policies. If the second request fails, the created zone is deleted.