What will happen if I delete the default VPC in AWS?
Asked Answered
M

3

6

I don't use the default VPC. I have created another VPC. However, I haven't assigned my other VPC as default. I would like to delete my default VPC and set my other VPC as default.

I read some arguments on the Internet. If I delete the default VPC then I will not be able to create instances. Is this correct?

What will happen if I delete the default VPC in AWS?

Messenger answered 27/3, 2018 at 18:44 Comment(3)
You can recreate the default VPC now. AWS documentation can be found here: docs.aws.amazon.com/AmazonVPC/latest/UserGuide/…Serrano
Thank you. I didn't know that. Quote from the document: "You cannot mark an existing nondefault VPC as a default VPC." What will happen if I don't have any "default" VPC? Is it a problem?Messenger
There shouldn't be any problems if you delete the default VPC. You won't get the default settings (like a public IP when creating an EC2 instance) in the VPC you created unless you explicitly define it.Serrano
E
4

AWS has recently announced a feature to self restore the default VPC.

Also its not mandatory to have a default VPC in place for a region. However, at least one is needed if you plan to start EC2 instances in the particular region.

Note: In the past, if the default VPC is deleted, it was required to contact AWS Support to restore it back.

Eponym answered 27/3, 2018 at 20:6 Comment(0)
A
1

To answer your question, if there are no resources in your default VPC, and you delete it, nothing will happen. Any VPC other than the default will need to be "manually" selected and may not auto-populate for other services - there is no existing way (and no real need) to call another VPC the "default VPC", however.

Ansermet answered 27/3, 2018 at 20:14 Comment(0)
C
1

You can recreate a new default vpc by going to the actions tab in vpc and by clicking on : Create default VPC

enter image description here

Checkroom answered 15/4 at 13:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.