awslabs / ecs-refarch-continuous-deployment

ECS Reference Architecture for creating a flexible and scalable deployment pipeline to Amazon ECS using AWS CodePipeline
https://aws.amazon.com/blogs/compute/continuous-deployment-to-amazon-ecs-using-aws-codepipeline-aws-codebuild-amazon-ecr-and-aws-cloudformation/
Apache License 2.0
850 stars 999 forks source link

Not able to create VPC #32

Closed cueopsbot-cuelogic closed 6 years ago

cueopsbot-cuelogic commented 6 years ago

Getting below exception while launching stack in us-east-1 region.

vpc_exception

cueopsbot-cuelogic commented 6 years ago

Managed to launch stack..I changed the vpc template and configured AZs that is supported for my account. Just wanted to know the default AZs this cloudformation stack uses to create VPC, subnets etc.?

jpignata commented 6 years ago

Hmm, I'm using the GetAzs intrinsic function to get Availability Zones that should work across users. From the docs:

For the EC2-Classic platform, the Fn::GetAZs function returns all Availability Zones for a region. For the EC2-VPC platform, the Fn::GetAZs function returns only Availability Zones that have a default subnet unless none of the Availability Zones has a default subnet; in that case, all Availability Zones are returned.

Can you pass along the output of aws ec2 describe-availability-zones for the region in which you were trying to launch the template? Is it possible you have less than two default subnets?

Thanks!

jpignata commented 6 years ago

Closing for now - feel free to reach back out with more information so we can get to the root of the initial run's stack failure. Thanks!