-
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
resource/aws_security_group: Use default VPC when no VPC ID passed #26697
Conversation
@@ -0,0 +1,3 @@ | |||
```release-note:bug | |||
resource/aws_security_group: Defaults to default VPC when not supplied |
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.
resource/aws_security_group: Defaults to default VPC when not supplied | |
resource/aws_security_group: `vpc_id` defaults to the AWS Region's default VPC when not configured |
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.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccVPCSecurityGroup_noVPC\|TestAccVPCSecurityGroup_basic' 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_noVPC\|TestAccVPCSecurityGroup_basic -timeout 180m
=== RUN TestAccVPCSecurityGroup_basic
=== PAUSE TestAccVPCSecurityGroup_basic
=== RUN TestAccVPCSecurityGroup_noVPC
=== PAUSE TestAccVPCSecurityGroup_noVPC
=== CONT TestAccVPCSecurityGroup_basic
=== CONT TestAccVPCSecurityGroup_noVPC
--- PASS: TestAccVPCSecurityGroup_basic (26.03s)
--- PASS: TestAccVPCSecurityGroup_noVPC (42.56s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 46.515s
This functionality has been released in v4.30.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. |
When no
vpc_id
is passed toaws_security_group
, use the default VPC to match the behaviour of the AWS API.Relates #26525
Relates #26666
Relates #23625
Output from acceptance testing: