Skip to content

Commit 5cfbbf8

Browse files
committed
Update ec2-automate-backup-awscli.sh
the snapshot id seems to be the 4th value.
1 parent f3e0d18 commit 5cfbbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ec2-automate-backup/ec2-automate-backup-awscli.sh

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

0 commit comments

Comments
 (0)