Default VPC subnets

0

I messed up with my VPC, and now whenever I want to launch ec2 instance from terraform, it says there is no subnets in my default vpc, but actually there is? I don't understand what the problem is.

asked 6 months ago247 views
1 Answer
1
Accepted Answer

What do you mean when you say you messed up with default VPC? If you deleted it, you can recreate it with all its default components. The same applies to recreating a default subnet. Have a look here https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html

AWS
TonyG
answered 6 months ago
profile pictureAWS
EXPERT
reviewed 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions