【发布时间】:2021-12-08 17:22:42
【问题描述】:
当前有一个集群,该集群具有基于此集群和负载均衡器/目标组创建的服务,通过在命令提示符中使用aws ecs create-service 创建它,并且在运行将我的可扩展目标描述为aws describe-scalable-targets --resource-ids (fargate-service/default/fargate-clustr) 的命令时,我收到一个错误syntax error, unexpected token '(' 所以我假设我在尝试描述目标时输入了错误的语法。
在下面链接的网站上告诉我服务自动缩放specifying the resource ID of the ECS service associated with the scalable target in Application Auto Scaling,我在我的 ECS 服务中找不到资源 ID?
我的范围是为我的集群中的任务创建自动缩放。
我遵循的可扩展目标命令 https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html#auto-scaling-IAM
注册目标命令:
--service-namespace ecs \
--scalable-dimension ecs:service:DesiredCount \
--resrouce-id fargate-service/default/fargate-cluster \
--min-capacity 1 \
--max-capacity 10
【问题讨论】:
标签: amazon-web-services amazon-ecs autoscaling aws-fargate