Difference between revisions of "InstanceId"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
  i-00b1cf99a8fd118aa t2.large your-machine-name
 
  i-00b1cf99a8fd118aa t2.large your-machine-name
 
  i-0a81356d71229695f t3.xlarge YourExample-workers-Node
 
  i-0a81356d71229695f t3.xlarge YourExample-workers-Node
 +
 +
== Related ==
 +
[[aws ec2]]
  
 
== See also ==
 
== See also ==

Revision as of 20:28, 29 September 2022

aws ec2 describe-instances | grep InstanceId
aws ec2 describe-instances | egrep "InstanceId|InstanceType|running"
aws ec2 describe-instances | jq -r '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)'

i-001d6ef48fd7da240 t3.xlarge YourExample-workers-Node
i-00b1cf99a8fd118aa t2.large your-machine-name
i-0a81356d71229695f t3.xlarge YourExample-workers-Node

Related

aws ec2

See also

Advertising: