ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

aws 常用命令

aws 常用命令

安装aws cli

https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

#查询所有配置的profile
aws configure list-profiles# 创建指定profile
aws configure --profile prod# 也可查看指定文件
# cat ~/.aws/credentials
# cat ~/.aws/config

ecr

查询指定账户 (prod-ecs) 的 ecr (clf/testhive) 的镜像文件

aws ecr describe-images --repository-name clf/testhive --profile  prod-ecs

ecs

# 创建一个名为 retail-store-ecs-cluster 的集群
aws ecs create-cluster --cluster-name retail-store-ecs-cluster 

1

返回列表