-
Notifications
You must be signed in to change notification settings - Fork 2
feat(security-group-rule-name):adding optional name for security group rule name. #457
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
base: master
Are you sure you want to change the base?
Conversation
| - `local` - (String) The local IP address or range of local IP addresses to which this rule will allow inbound traffic (or from which, for outbound traffic). A CIDR block of 0.0.0.0/0 allows traffic to all local IP addresses (or from all local IP addresses, for outbound rules). an IP address, a `CIDR` block. | ||
| - `ip_version` - (Optional, String) The IP version to enforce. The format of local.address, remote.address, local.cidr_block or remote.cidr_block must match this property, if they are used. If remote references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version. Supported value is [`ipv4`]. | ||
| - `icmp` - (Optional, List) A nested block describes the `icmp` protocol of this security group rule. | ||
| - `name` - (String) The name for this security group rule. The name must not be used by another rule in the security group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be optional as well ?
| -arch="${XC_ARCH}" \ | ||
| -osarch="${XC_EXCLUDE_OSARCH}" \ | ||
| -ldflags "${LD_FLAGS}" \ | ||
| -output "pkg/{{.OS}}_{{.Arch}}/terraform-provider-ibm" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not required
| isVPCSecurityGroupRuleRemote = "remote" | ||
| isVPCSecurityGroupRuleType = "type" | ||
| isVPCSecurityGroupRuleCode = "code" | ||
| isVPCSecurityGroupRuleName = "name" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has no code changes for rule name ?
| Computed: true, | ||
| }, | ||
|
|
||
| isVPCSecurityGroupRuleName: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test changes for this
| if securityGroupRule.Code != nil { | ||
| icmpProtocol["code"] = *securityGroupRule.Code | ||
| } | ||
| if securityGroupRule.Name != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is rule name set to protocol ?
4b70c7b to
c4e3c46
Compare
Community Note
Relates OR Closes #0000
Output from acceptance testing: