fix: replace deprecated tcp/udp/icmp SG rule blocks in VSI module#1029
Draft
fix: replace deprecated tcp/udp/icmp SG rule blocks in VSI module#1029
Conversation
Contributor
Author
|
/run pipeline |
Contributor
Author
Contributor
Author
|
/run pipeline |
1 similar comment
Contributor
Author
|
/run pipeline |
jor2
reviewed
Feb 20, 2026
Member
jor2
left a comment
There was a problem hiding this comment.
Version bumps look good. The security group refactor from nested blocks to top-level attributes will force-replace all existing rules on upgrade - call this out in the changelog as a breaking change.
- security_group.tf: Switching from dynamic
tcp/udp/icmpblocks to top-levelprotocol/port_min/port_max/type/codewill cause Terraform to destroy and recreate every existing security group rule on the next apply. Add amovedblock or document this as a breaking change in the release notes.
Contributor
|
@jor2 the PR is in draft state because we have an open issue with provider on the breaking change. See IBM-Cloud/terraform-provider-ibm#6670 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
ibm_is_security_group_ruleinsecurity_group.tfto use provider-supported top-level fields (protocol,port_min,port_max,type,code) instead of deprecated nestedtcp/udp/icmpblocks.The IBM provider deprecates nested
tcpblocks foribm_is_security_group_ruleand recommends usingprotocol,code, andtype(plus port fields for tcp/udp).This change aligns the VSI module with current provider expectations and avoids warning noise for downstream consumers.
Release required?
x.x.X)x.X.x)X.x.x)Release notes content
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers