amazon-web-services

AWS CLI Create Default VPC


I've got an OLD AWS account that apparently does NOT have a default VPC:

aws ec2 describe-security-groups --group-names webserviced --region us-west-1

A client error (VPCIdNotSpecified) occurred when calling the DescribeSecurityGroups operation: No default VPC for this user

There's no switch on create-vpc...only a boolean (IsDefault) in the output. I'm trying to replicate my infrastructure to the east coast and this is blocking me :( I don't have ANYTHING created on the east-coast (except for a single VPC that apparently isn't set as the default) so I'd at least like to figure out how to do it there so I don't have these issues in the future.

How can I define a default VPC?

P.S. Please don't say that I can't because there's already one defined...unless there's something I'm missing in which case I'd expect a big explanation :)


Solution

  • I can confirm that it's not possible to set a custom VPC to your default VPC. Most use-cases don't require a lot of customization on a VPC since you can map the network in/out of the tunnel.