Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ec2 print instance id powershell script

$instanceId = (Invoke-WebRequest -Uri http://169.254.169.254/latest/meta-data/instance-id).Content
 
PREVIOUS NEXT
Tagged: #print #instance #id #powershell #script
ADD COMMENT
Topic
Name
4+8 =