4Manuals

  • PDF Cloud HOME

为什么在aws ecs命令中看不到我的集群详细信息? Download

    IP地址显示我的网站,但域名显示“ welcome to nginx” 如何将自定义错误从Lambda发送到Api网关 如何访问射线多节点群集? Kubernetes,更改Kops集群的服务器 在EC2服务器上运行python代码时出错 无法在Lambda AWS Node.js中输出HTTP请求和mysql查询 您如何通过AWS Quicksight连接到Redshift Spectrum上的外部架构/表? AWS Signature版本4在2019年12月30日提供了无效的签名值 如何在Windows中通过create-key-pair命令生成pem文件? 使用RDS postgresql的本地postgresql的HA设置

我运行以下命令:aws ecs describe-clusters,其输出结果:

{                                                                             
    "clusters": [],                                                           
    "failures": [                                                             
        {                                                                     
            "reason": "MISSING",                                              
            "arn": "arn:aws:ecs:us-east-2:---------:cluster/default"       
        }                                                                     
    ]                                                                         
}                                                                             

但是在https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/clusters中,我有一个集群。

enter image description here

为什么在aws ecs命令中看不到集群详细信息?

2 个答案:

答案 0 :(得分:0)

如果不传递集群的参数,它将返回上面的错误

= 例如

aws ecs describe-clusters --clusters name-of-the-cluster

答案 1 :(得分:0)

您还必须传递群集的名称。

例如

aws ecs describe-clusters --clusters "name-of-your-cluster"

{
    "clusters": [
        {
            "status": "ACTIVE", 
            "statistics": [], 
            "tags": [], 
            "clusterName": "xxxx", 
            "registeredContainerInstancesCount": 1, 
            "pendingTasksCount": 0, 
            "runningTasksCount": 2, 
            "activeServicesCount": 1, 
            "clusterArn": "arn:aws:ecs:ap-south-1:xxxxx"
        }
    ], 
    "failures": []
}

参考:https://docs.aws.amazon.com/cli/latest/reference/ecs/describe-clusters.html



Similar searches
    Google设备政策在Android版本9上反复提示用户“正在等待域管理员的批准”通知 Cassandra中的套接字连接数 c#||我需要一个变量来控制另一个变量,但是它们都属于自己的范围。我该怎么办? Ansible条件查询 在类中使用std :: optional