-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
add support for importing aws_network_acl_rule resources #12921
Conversation
@@ -632,15 +643,13 @@ resource "aws_network_acl" "test" { | |||
} | |||
|
|||
resource "aws_network_acl_rule" "test" { | |||
from_port = -1 |
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.
removed these port ranges as the protocol here is ipv6-icmp
and port range is supported only for ucp/tcp per docs. if port ranges are passed to the test, the api returns nil for resp.PortRange
; response output from findNetworkAclRule
:
Egress: false,
IcmpTypeCode: {
Code: -1,
Type: -1
},
Ipv6CidrBlock: "::/0",
Protocol: "58",
RuleAction: "allow",
RuleNumber: 150
}
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.
Hey @anGie44 👋 Thanks for diving into this tough one. Overall its looking good, just some things for working in the AWS Provider codebase (that might be different from others) that we'll want to be mindful of for now.
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.
Looks great 🚀
Output from acceptance testing:
--- PASS: TestAccAWSNetworkAclRule_missingParam (11.72s)
--- PASS: TestAccAWSNetworkAclRule_disappears_NetworkAcl (14.10s)
--- PASS: TestAccAWSNetworkAclRule_disappears (16.28s)
--- PASS: TestAccAWSNetworkAclRule_ipv6ICMP (17.37s)
--- PASS: TestAccAWSNetworkAclRule_ingressEgressSameNumberDisappears (18.69s)
--- PASS: TestAccAWSNetworkAclRule_ipv6 (21.12s)
--- PASS: TestAccAWSNetworkAclRule_basic (23.07s)
--- PASS: TestAccAWSNetworkAclRule_ipv6VpcAssignGeneratedIpv6CidrBlockUpdate (25.02s)
--- PASS: TestAccAWSNetworkAclRule_tcpProtocol (27.31s)
--- PASS: TestAccAWSNetworkAclRule_allProtocol (33.73s)
This has been released in version 2.59.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #10983
Release note for CHANGELOG:
Output from acceptance testing: