Open emisaacson opened 5 years ago
I was able to fix this by replacing the mime-encoded bash script in UserData in the created CF stack with:
<powershell>
Initialize-ECSAgent -Cluster <ClusterName> -EnableTaskIAMRole -LoggingDrivers '[`"json-file`",`"awslogs`"]'
</powershell>
Summary
Windows hosts created during ecs-cli up don't join the cluster.
Description
Exact command run:
Which version of the CLI you are using? (Run:
ecs-cli --version
) 1.12.1 (e70f1b1)Which version of Go are you using? (Run:
go version
) No idea. Is the runtime bundled in the .exe on windows or something?What platform are you using to run ECS CLI commands? (E.g. Linux, MacOSX, Windows) Windows
Expected Behavior
Created hosts join the ECS cluster
Observed Behavior
Cloudformation completes successfully but the instances do not join the cluster.
If I run the same ecs-cli command above but substitute a linux AMI (e.g. "ami-045f1b3f87ed83659" # amzn-ami-2018.03.i-amazon-ecs-optimized) the instances join the cluster as expected.
Creating the Windows cluster through the AWS console with the same parameters above also works as expected.