Known issue: Docker Cloud cannot add aws credentials for an account with no default vpc

I’ve added all the iam permission but when I try to add the credentials they will not save. I believe it’s because this aws account has all the default VPC’s deleted in all regions.

Following the guide this is my error https://docs.docker.com/docker-cloud/getting-started/link-aws/

➜ ~ aws ec2 run-instances --dry-run --image-id ami-4d883350 --instance-type m3.medium
A client error (VPCIdNotSpecified) occurred when calling the RunInstances operation: No default VPC for this user

That is correct, did you manually delete all default VPCs? What was the reason to do this?

I did manually delete them. I do have vpcs in one region but it’s not the default one that was created with the account.

There is a way to get the default VPCs re-created in your account by contacting AWS directly. It is documented here:

https://aws.amazon.com/premiumsupport/knowledge-center/deleted-default-vpc/