Skip to content

feat(secure): deprecate sysdig_secure_posture_zone in favor of sysdig_secure_zone#722

Merged
tembleking merged 2 commits intomasterfrom
feat/deprecate-posture-zone
Apr 7, 2026
Merged

feat(secure): deprecate sysdig_secure_posture_zone in favor of sysdig_secure_zone#722
tembleking merged 2 commits intomasterfrom
feat/deprecate-posture-zone

Conversation

@tembleking
Copy link
Copy Markdown
Member

@tembleking tembleking commented Apr 1, 2026

Summary

The CSPM v1 API used by sysdig_secure_posture_zone does not support resourceGroupId for the IBM target type, returning a 400 error. Rather than working around v1 limitations, this deprecates the resource and guides users to sysdig_secure_zone which uses the Platform Zones API with full IBM support.

  • Add DeprecationMessage to sysdig_secure_posture_zone resource and data source
  • Add deprecation banners to resource and data source documentation
  • Add migration guide to sysdig_secure_zone documentation covering scope mapping, state migration, and policy_ids limitation

…_secure_zone

The CSPM v1 API used by sysdig_secure_posture_zone does not support
resourceGroupId for the IBM target type, returning a 400 error.
Rather than working around v1 limitations, deprecate the resource
and guide users to sysdig_secure_zone which uses the Platform Zones
API with full IBM support.

Ref: ET-818
@tembleking tembleking requested a review from a team as a code owner April 1, 2026 10:12
Copilot AI review requested due to automatic review settings April 1, 2026 10:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request deprecates the sysdig_secure_posture_zone resource and data source in favor of sysdig_secure_zone. The CSPM v1 API used by the deprecated resource does not support resourceGroupId for IBM target types, so users are being guided to migrate to the Platform Zones API which has full IBM support. The PR adds deprecation messages to the code, deprecation notices to the documentation, and provides a comprehensive migration guide.

Changes:

  • Added DeprecationMessage to both the resource and data source definitions
  • Added deprecation notices to resource and data source documentation
  • Added a detailed migration guide to sysdig_secure_zone documentation with state migration steps and scope mapping examples
  • Documented the policy_ids limitation (the new resource does not manage policy assignments)

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sysdig/resource_sysdig_secure_posture_zone.go Added DeprecationMessage to resource schema
sysdig/data_source_sysdig_secure_posture_zone.go Added DeprecationMessage to data source schema
website/docs/r/secure_posture_zone.md Added deprecation warning banner
website/docs/d/secure_posture_zone.md Added deprecation warning banner
website/docs/r/secure_zone.md Added comprehensive migration guide with 4-step migration process

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tembleking tembleking enabled auto-merge April 6, 2026 10:36
@tembleking tembleking added this pull request to the merge queue Apr 7, 2026
Merged via the queue into master with commit 32637b2 Apr 7, 2026
347 of 354 checks passed
@tembleking tembleking deleted the feat/deprecate-posture-zone branch April 7, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants