I have a docker compose project that I am trying to deploy to AWS. Amazons ECS service seemed like a good fit, however when I try to deploy using the ecs-cli up
command like so:
ecs-cli up --capability-iam \
--keypair my-keypair \
--size 4 \
--vpc vpc-cc1ab3a8 \
--subnets subnet-1f944e22,subnet-151b1d4c,subnet-63437548,subnet-323ad644 \
--azs us-east-1a,us-east-1b,us-east-1d,us-east-1e
I get the following error in CloudFormation...
The availability zones of the specified subnets and the AutoScalingGroup do not match
Not exactly sure how to proceed. I'm still very new to AWS and after looking through the ECS docs, I couldn't find anything that directly addressed AutoScalingGroup.
I assume the error is because the created autoscaling group didn't match up to the specified subnets? How do I get them to match up?