查看命令帮助
aws help
aws ec2 help
aws ec2 create-image help
示例
- 查看instance id
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
aws ec2 describe-instances \
--filters "Name=private-ip-address,Values=$(hostname -I)" \
--query "Reservations[*].Instances[*].[InstanceId]" \
--output text
- 制作镜像
aws ec2 create-image \
--no-reboot \
--instance-id $(get_instance_id) \
--name $name
标签:help,--,aws,instance,ec2,使用,id,cli
From: https://www.cnblogs.com/dewan/p/17805461.html