Deploy Docker Compose Microservices to Amazon EC2 Container ServiceGo to Lab
A little more in depth with the ECS-CLI commands would be helpful
Without explanation, I hadn't known if the tasks were deployed in the whole cluster using CLI or just in the instance whose initial is "qls-" before I took a look at the running instance. Better to explain the system architecture a little bit.
Docker compose file name is inconsistent - one note says to use a lowercase "qwiklabs-compose.yml" and another says to use "Qwiklabs-compose.yml". Also, first time running ecs-cli compose gave an error: [ec2-user@ip-10-0-0-204 ~]$ ecs-cli compose --file Qwiklabs-compose.yml service up WARN Skipping unsupported YAML option... option name=volumes WARN Skipping unsupported YAML option... option name=networks WARN Skipping unsupported YAML option for service... option name=networks service name=busybox WARN Skipping unsupported YAML option for service... option name=networks service name=simple-app INFO Using ECS task definition TaskDefinition="ecscompose-ec2-user:1" INFO Created an ECS service service=ecscompose-service-ec2-user taskDefinition="ecscompose-ec2-user:1" FATA Please use 'create' command to create the service 'ecscompose-service-ec2-user' first