Update ec2-automate-backup-awscli.sh

the snapshot id seems to be the 4th value.
This commit is contained in:
nathanblogs 2014-10-23 16:41:33 +08:00
parent f3e0d186e4
commit 5cfbbf827f

View File

@ -208,7 +208,7 @@ for ebs_selected in $ebs_backup_list; do
if [[ $? != 0 ]]; then
echo -e "An error occurred when running ec2-create-snapshot. The error returned is below:\n$ec2_create_snapshot_result" 1>&2 ; exit 70
else
ec2_snapshot_resource_id=$(echo "$ec2_create_snapshot_result" | cut -f 3)
ec2_snapshot_resource_id=$(echo "$ec2_create_snapshot_result" | cut -f 4)
fi
create_EBS_Snapshot_Tags
done