-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Feature Request: default_* attributes for aws_vpc data source #10428
Comments
@cbarbour : With a couple of open PRs
I think this can be achieved without modifying the You can get the VPC ID from the
Once #12709 is merged then you can do the same for the default NACL:
And once #11710 is merged:
|
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Affected data source
Terraform Configuration Files
Expected Behavior
It would be useful if aws_default_network_acl, aws_default_route_table, & aws_default_security_group were available as attributes of the aws_vpc data source so that these resources could be managed without importing the default VPC.
Actual Behavior
The aws_vpc data source doesn't export these attributes, making it impossible to discover their resource IDs.
Important Factoids
The alternative would be to import the default VPC into Terraform, and reference it's attributes. However, if destroyed it's impossible for Terraform to recreate the default VPC.
prevent_destroy
could be used, but that would break the blanketterraform destroy
command.References
https://aws.amazon.com/premiumsupport/knowledge-center/deleted-default-vpc/
The text was updated successfully, but these errors were encountered: