-
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
aws_default_vpc failing with Default VPC does not exist #21241
Comments
@xorxsan Thanks for raising this issue. |
@ewbankkit thanks for the response. However what I don't understand is that I did not remove the default VPC for any region. It looks like it has never been created in the first place by AWS. |
This functionality has been released in v4.0.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Hi all,
I'm having an error when trying to use the
aws_default_vpc
resource.According to documentation https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/default_vpc:
However, when I try to import this resource, it fails with a
No default VPC found in this region
(I tried several regions).I'm not really sure this is a bug on the documentation or on the resource itself.
Thanks!
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Also tried with
Debug Output
https://gist.github.com/xorxsan/91cc8e28cf3fe627653f35444294ac51
Panic Output
None
Expected Behavior
The default vpc for any region should be imported (according to documentation).
Actual Behavior
The following error was thrown:
Steps to Reproduce
terraform apply
Important Factoids
Account was created on 2020.
References
The text was updated successfully, but these errors were encountered: