AWS CLI 命令行详解

官网

bash 复制代码
## aws cli
https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/cli-configure-files.html

## ec2 api
https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instance-status.html

支持的格式

bash 复制代码
https://docs.aws.amazon.com/zh_cn/cli/v1/userguide/cli-usage-output-format.html

获取安全的令牌

如果需要,运行以下命令以获取 AWS CLI 的新安全令牌。有关更多信息,请参阅《AWS CLI 命令参考》中的 get-session-token。

默认情况下,令牌的有效期为 15 分钟。要更改默认会话超时,请传递 --duration-seconds 标志。例如:

bash 复制代码
https://docs.aws.amazon.com/zh_cn/eks/latest/userguide/setting-up.html

EC2常用命令

bash 复制代码
###
aws ec2 describe-instances --output table --region us-west-1

##
aws ec2 describe-instance-status --include-all-instances


#
aws ec2 help
相关推荐
Geek-Chow8 分钟前
01 · Why AWS Lambda: Idle Cost, Capacity Planning and Risky In-Place Deploys
云计算
workflower1 小时前
超算中心聚焦高性能计算场景(HPC)
大数据·网络·人工智能·机器人·云计算·汽车
workflower14 小时前
Agentic AI 时代的企业ICT 基础设施运维
运维·人工智能·机器学习·重构·云计算·汽车
Geek-Chow17 小时前
00 · AWS Lambda 心智模型学习指南:总览、思维导图与阅读路线(专栏目录)
云计算
Geek-Chow20 小时前
07 · AWS Lambda 自测题与动手实验:用 AWS CLI 验证版本、别名、预置并发与冷启动
云计算
yyuuuzz1 天前
云服务器部署 web 项目的进程常驻记录
运维·服务器·前端·阿里云·云计算·aws
略懂而已2 天前
腾讯云COS 自动同步 for windows
windows·云计算·腾讯云
逐流人2 天前
Redis内存数据库:从数据类型到集群部署
linux·运维·数据库·redis·缓存·云计算
tianbin9112 天前
大模型流式输出异常排查,API 中转站层面的问题定位思路
后端·云计算