-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_security_group: AWS API consistency for protocol of -1
#27642
Conversation
…n protocol is '-1'.
…port when protocol is '-1'." This reverts commit 11eade1.
Community NoteVoting for Prioritization
For Submitters
|
Consider backporting to |
Acceptance test output: % make testacc TESTARGS='-run=TestAccVPCSecurityGroup_vpcAllEgress' PKG=ec2 ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 2 -run=TestAccVPCSecurityGroup_vpcAllEgress -timeout 180m === RUN TestAccVPCSecurityGroup_vpcAllEgress === PAUSE TestAccVPCSecurityGroup_vpcAllEgress === CONT TestAccVPCSecurityGroup_vpcAllEgress --- PASS: TestAccVPCSecurityGroup_vpcAllEgress (24.78s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 29.517s
This functionality has been released in v4.39.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Ensures consistency between the
aws_security_group
andaws_security_group_rule
resources when calling the AWS (Authorize|Revoke)SecurityGroup(Ingress|Egress) APIs for rules with aprotocol
value of-1
.The key change is done in 4f21a7d -
ExpandIPPerms
now does not set any value forFromPort
orToPort
if the protocol value is-1
.Relations
Closes #27079.
Output from Acceptance Testing