Get correct Snapshot ID with changed output format of "aws ec2 create-snapshot"
This commit is contained in:
		
							parent
							
								
									0257aedd3e
								
							
						
					
					
						commit
						b3095dfa3e
					
				@ -233,7 +233,7 @@ do
 | 
			
		||||
	if [[ $? != 0 ]]
 | 
			
		||||
		then echo -e "An error occured 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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user