Erase Default VPC

0

Hi, is it a good idea to erase/replace the default VPC that comes with a brand-new AWS account? some day, a person who knows a lot of AWS told me that he faced issues because he deleted the default 172.31.0.0 VPC. Can I delete and then create a new VPC with the same CIDR 172.31.0.0 or will this cause future issues? Thank you!

已提問 2 年前檢視次數 440 次
2 個答案
1

So the answer to your question is Yes:

Can I delete and then create a new VPC with the same CIDR 172.31.0.0 or will this cause future issues?

If you delete your default VPC, you can create a new one. You cannot restore a previous default VPC that you deleted, and you cannot mark an existing non-default VPC as a default VPC.

Reference: https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html#create-default-vpc

Is there a reason you want to use the default VPC? I'd highly encourage to move away from default VPC as it's not recommended and is a bad practice to use mainly for security reasons.

profile pictureAWS
專家
已回答 2 年前
profile pictureAWS
專家
kentrad
已審閱 2 年前
  • Thank you for your reply. My main question is more related to the fact of deleting the default VPC, not using it. Should I keep the default VPC and just not use it? is there a recommendation about keeping the default VPC for something? I normally create a new VPC and work on it, but should I keep the default VPC?

  • You can go ahead and delete it, it wont cause any issues.

0

Go ahead and delete the default VPC. It's standard practice for us across all VPCs for all our clients and has never caused the slightest issue.

專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南