我正在运行:
aws ecs start-task --cluster default --task-definition tobi-test-task:4 --container-instance arn:aws:ecs:us-west-2:container-instance/i-083adb2301e80f09c但得到的是:
A client error (InvalidParameterException) occurred when calling the StartTask operation: instanceId longer than 36.instanceId为19个字符(少于36个字符)。
Official ARN namespaces
发布于 2017-04-21 00:39:18
容器实例是一个32个字符的GUID,类似于67fbef1c-474f-46cb-a8bb-b2f923e21234
您可以通过以下命令获取此列表(请注意,我必须显式地指定--集群,否则您将返回一个空列表):$ aws ecs list-clusters ... you'll see your clusters here ... $ aws ecs list-container-instances --cluster arn:aws:ecs:us-east-1:181312345678:cluster/myown-ServiceECSCluster-13XI13N9EQCXZ ... grab your GUIDs here ...
发布于 2017-03-04 05:29:43
这看起来不像是一个有效的容器实例ARN,而是一个容器实例的ARN前缀,后跟一个EC2实例ID。您可以通过调用集群的ListContainerInstances来查看集群中的容器实例ID。
https://stackoverflow.com/questions/42587595
复制相似问题