如何解决AWS ECS创建服务在控制台上显示输出时等待用户输入
我正在使用circleci作业来创建ECS服务。下面是我用来创建ECS服务的aws cli命令。
aws ecs create-service --cluster "test-cluster" --service-name testServiceName \
--task-definition testdef:1 \
--desired-count 1 --launch-type EC2
执行此命令时,发生以下错误,并且CircleCI作业失败。
{ress RETURN)
"service": {
"serviceArn": "arn:aws:ecs:*********:<account-id>:service/testServiceName","serviceName": "testServiceName","clusterArn": "arn:aws:ecs:*********:<account-id>:cluster/test-cluster","loadBalancers": [],"serviceRegistries": [],"status": "ACTIVE","desiredCount": 1,"runningCount": 0,"pendingCount": 0,"launchType": "EC2","taskDefinition": "arn:aws:ecs:*********:<account-id>:task-definition/testdef*********:1","deploymentConfiguration": {
"maximumPercent": 200,"minimumHealthyPercent": 100
},"deployments": [
{
"id": "ecs-svc/1585305191116328179","status": "PRIMARY",:
Too long with no output (exceeded 10m0s): context deadline exceeded
在最小化的终端窗口中本地运行命令会给出以下输出
{
"service": {
"serviceArn": "arn:aws:ecs:<region>:<account-id>:service/testServiceName","clusterArn": "arn:aws:ecs:<region>:<account-id>:cluster/test-cluster","taskDefinition": "arn:aws:ecs:<region>:<account-id>:task-definition/testdef:1","deployments": [
{
"id": "ecs-svc/8313453507891259676",:
进一步的执行被停止,直到我敲了一些键。这是CircleCI作业在 10m阈值限制之后失败的原因。当我在本地的全屏终端中运行命令时,它不会等待并显示输出。
是否以某种方式运行命令,使得它不等待任何键被按下并完成执行,因此管道不会失败。请注意,ECS服务创建成功。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。