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 (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...