问题描述
我在 ecs 上有一个集群,一切正常!当我使用 aws cli v.1 时,我可以使用这样的命令更新我的服务 aws ecs update-service --cluster [cluster-name] --service [service-name] --task-definition [task-name] --force-new-deployment
.将 CLI 更新到 v.2 后,我尝试使用此命令,但一切都卡住了!我在 aws 文档中没有发现任何变化.你有什么想法吗?
I have a cluster on ecs everything works well! When I used aws cli v.1, I could update my service used a command like this aws ecs update-service --cluster [cluster-name] --service [service-name] --task-definition [task-name] --force-new-deployment
. After updating CLI to v.2 I try to use this command and everything just stuck! I didn't find any changes in aws documentation. Do you have any ideas?
更新:我的截图问题是一切都很好,没有错误或警告,只是卡住了!
update:my screenshotthe problem is that everything starts well, without errors or warnings, it just gets stuck!
推荐答案
AWS CLI 版本 2 使用 客户端寻呼机.如文档中所述,您可以使用 --no-cli-pager
命令行选项禁用单个命令使用的寻呼机";(或使用此处描述的任何其他选项).
The AWS CLI version 2 uses a client-side pager. As stated in the documentation, you can "use the --no-cli-pager
command line option to disable the pager for a single command use" (or use any of the other options described there).
这篇关于AWS CLI 2 无法更新服务使用 CLI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!