Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSX Provider: Mark group member type changes as ForceNew to handle type conversion limitations #1556

Open
Sec-Siddiqui opened this issue Feb 27, 2025 · 0 comments
Labels
enhancement Enhancement

Comments

@Sec-Siddiqui
Copy link

Is your feature request related to a problem? Please describe.

Logged on behalf of the customer:
Summary
When changing a group member’s type (e.g., from IPAddress to Generic) in an NSX policy group, Terraform plans the change as an in-place update but fails during apply with error 500336. The provider should mark type changes as requiring resource recreation.
Current Behavior
• Terraform plan shows the type change as an in-place update
• Terraform apply fails with: Error: Failed to update Group MANUAL-Tenable-scanners: Invalid Group Member type update. IPAddress type cannot be updated to Generic type. (code 500336)
Expected Behavior
Terraform should detect that changing a group member’s type requires destroying and recreating the resource, similar to how other providers handle attributes that cannot be updated in-place

Describe the solution you'd like

Modify the provider to mark the group member type attribute with ForceNew: true to ensure Terraform properly plans a destroy and recreate operation when the type changes

Describe alternatives you've considered

No response

Additional context

No response

@Sec-Siddiqui Sec-Siddiqui added the enhancement Enhancement label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant