跨区域删除aws ec2 image

.

0

linux命令:for i in $(aws ec2 describe-regions --output text --region "" | cut -f 3); do aws ec2 describe-images --output text --region $i --filter Name=name,Values=myimage | cut -f 6 | grep ami* | xargs -I {} aws ec2 deregister-image --region $i --image-id {};done {};done --image-id $i --region deregister-image ec2 aws {} -I xargs | ami* grep | 6 -f cut | Name=name,Values=myimage --filter $i --region text --output describe-images ec2 aws do 3); -f cut | "" --region text --output describe-regions ec2 $(aws in i for for i in $(aws ec2 describe-regions --output text --region "" | cut -f 3); do aws ec2 describe-images --output text --region $i --filter Name=name,Values=myimage | cut -f 6 | grep ami* | xargs -I {} aws ec2 deregister-image --region $i --image-id {};donerootopen.com
linux命令:for i in $(aws ec2 describe-regions --output text --region "" | cut -f 3); do aws ec2 describe-images --output text --region $i --filter Name=name,Values=myimage | cut -f 6 | grep ami* | xargs -I {} aws ec2 deregister-image --region $i --image-id {};done {};done --image-id $i --region deregister-image ec2 aws {} -I xargs | ami* grep | 6 -f cut | Name=name,Values=myimage --filter $i --region text --output describe-images ec2 aws do 3); -f cut | "" --region text --output describe-regions ec2 $(aws in i for for i in $(aws ec2 describe-regions --output text --region "" | cut -f 3); do aws ec2 describe-images --output text --region $i --filter Name=name,Values=myimage | cut -f 6 | grep ami* | xargs -I {} aws ec2 deregister-image --region $i --image-id {};donerootopen.com
gray 2018-07-27 22:26:48
输出

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章