Removing typo - had duplicate curl command.
This commit is contained in:
		
							parent
							
								
									9c69efc5e3
								
							
						
					
					
						commit
						1d9540963e
					
				@ -1,7 +1,7 @@
 | 
				
			|||||||
#!/bin/bash -
 | 
					#!/bin/bash -
 | 
				
			||||||
#get instance id - used for putting metric
 | 
					#get instance id - used for putting metric
 | 
				
			||||||
INSTANCE_ID=`GET http://169.254.169.254/latest/meta-data/instance-id`
 | 
					INSTANCE_ID=`GET http://169.254.169.254/latest/meta-data/instance-id`
 | 
				
			||||||
INSTANCE_AZ=`curl -s curl http://169.254.169.254/latest/meta-data/placement/availability-zone/`
 | 
					INSTANCE_AZ=`curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone/`
 | 
				
			||||||
INSTANCE_REGION=${INSTANCE_AZ%?}
 | 
					INSTANCE_REGION=${INSTANCE_AZ%?}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#belowshould be changed to grep - get only everything after % space slash
 | 
					#belowshould be changed to grep - get only everything after % space slash
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user