创建EC2容量提供者:
aws ecs create-capacity-provider --name cp-name --auto-scaling-group-provider ECS --region us-west-2 --attributes CapacityProviderStrategy=[{capacityProvider="cp-name", weight=1, base=0}]
列出EC2容量提供者:
aws ecs describe-capacity-providers --region us-west-2
以上示例是在美国西部2区域(us-west-2)创建和列出容量提供者。将区域更改为您的AWS ECS集群所在的区域。
上一篇:AWSECSEC2ECR使用dockervolume和nginx部署后无法更新文件
下一篇:AWSECSexec/usr/local/bin/docker-entrypoint.sh:execformaterror