📜  aws 孤立快照 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:44.642000             🧑  作者: Mango

代码示例1
comm -23 <(aws ec2 describe-snapshots --owner-ids AWS-ACCOUNT-ID --query 'Snapshots[*].SnapshotId' --output text | tr '\t' '\n' | sort) <(aws ec2 describe-volumes --query 'Volumes[*].SnapshotId' --output text | tr '\t' '\n' | sort | uniq)