创建与查看
创建与查看
aws ec2 create-image --instance-id i-0123456789abcdef0 \
--name "web-2026-10-12" --description "web golden image" --no-reboot
aws ec2 describe-images --owners self \
--query 'Images[*].[ImageId,Name,State]' --output table| 一致性 | 默认先重启实例;--no-reboot 不重启,文件系统为崩溃一致状态 |
|---|---|
| 范围 | 默认全部卷,可用 --block-device-mappings 指定 |
| 关联 | AMI 依赖底层快照,快照被删则镜像不可用 |
整机镜像适合基础环境批量复制与灾难重建;数据盘建议拆分为独立卷快照单独管理。