在 AWS ECS 上的服务 Auto Scaling 中注册可扩展目标时出错
Error when Registering Scalable Targets within my Service Auto Scaling on AWS ECS
我尝试使用 --resource-id
中指定的服务和集群名称为我的自动缩放注册可缩放目标,但我收到错误消息
RegisterScalableTarget operation: Unsupported service namespace, resource type or scalable dimension.
--service-namespace ecs \
--scalable-dimension ecs:service:DesiredCount \
--resource-id fargate-service/default/fargate-cluster \
--min-capacity 1 \
--max-capacity 10
它告诉我 --service-namespace
ECS 是问题所在,但在将注册目标部署到 ECS 的示例代码中,这是格式化代码的有效方法吗?我的服务称为 fargate-service,集群称为 fargate-cluster,如图所示。
我不确定要提供哪些其他详细信息才能获得解决方案,但如果我遗漏了任何重要信息,请务必提及。
以下似乎不正确:
--resource-id fargate-service/default/fargate-cluster
--resource-id service/<your-cluster-name>/<your-service-name>
我尝试使用 --resource-id
中指定的服务和集群名称为我的自动缩放注册可缩放目标,但我收到错误消息
RegisterScalableTarget operation: Unsupported service namespace, resource type or scalable dimension.
--service-namespace ecs \
--scalable-dimension ecs:service:DesiredCount \
--resource-id fargate-service/default/fargate-cluster \
--min-capacity 1 \
--max-capacity 10
它告诉我 --service-namespace
ECS 是问题所在,但在将注册目标部署到 ECS 的示例代码中,这是格式化代码的有效方法吗?我的服务称为 fargate-service,集群称为 fargate-cluster,如图所示。
我不确定要提供哪些其他详细信息才能获得解决方案,但如果我遗漏了任何重要信息,请务必提及。
以下似乎不正确:
--resource-id fargate-service/default/fargate-cluster
--resource-id service/<your-cluster-name>/<your-service-name>