You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for MYSNAP in `aws ec2 describe-snapshots --output text --filters "Name=volume-id,Values=${MYVOL}" "Name=description,Values='Automatic ${SNAP_TYPE} backup'" "Name=status,Values=completed" --query "Snapshots[*].{ID:SnapshotId}" | sed 1,${KEEP_NUM}d`; do
echo "...Deleting old ${SNAP_TYPE} snapshot ${MYSNAP} attached to ${MYVOL}" | tee -a ~/ec2_backup.log
aws ec2 delete-snapshot --snapshot-id ${MYSNAP} 2>&1 | tee -a ~/ec2_backup.log 2>&1