These are chat archives for aws/aws-cli

18th
Mar 2018
David M. Karr (fullname at gmail.com)
@davidmichaelkarr
Mar 18 2018 16:49
I'm still stepping through SDfA, and I've reached a point of confusion between "ec2 instances" and "container instances". At this point, I've created an ECS cluster, and an EC2 instance. At this point in the course, it then asks me to verify that the "container instance" has joined the cluster. The list of container instances in the cluster is empty, but in the course they have one container. As far as I can tell, there was never a step to actually create a container instance, so I don't see how a container instance could have joined the cluster. Am I missing something, or did the course skip a step?
Ah, ok. "aws ec2 run-instances" actually creates a container instance (the course didn't ever use the word "container" in the description).
So I was able to execute "run-instances", and that produced something, but it hasn't joined my cluster. I didn't see anything in the instructions for creating the instance that specifies WHICH cluster, if any, it should try to join. Should I have seen something like that?
David M. Karr (fullname at gmail.com)
@davidmichaelkarr
Mar 18 2018 17:06
Ok, I noticed afterwards that the "ecs.config" had the wrong cluster name for the "ECS_CLUSTER" value. I fixed that, then recopied it to my s3 bucket, and then reran the "run-instances" command line. Unfortunately, this seemed to make no effective difference. Well after the "SystemStatus" of the container instance went to "ok", I continued to check "list-container-instances" for the cluster, and there's still no container joined to the cluster. What else could I be doing wrong?