Difference between revisions of "InstanceId"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
  [[aws ec2 describe-instances]] | egrep "InstanceId|[[InstanceType]]|running"
 
  [[aws ec2 describe-instances]] | egrep "InstanceId|[[InstanceType]]|running"
  
{{aws ec2}}
+
[[aws ec2 describe-instances]] | [[jq -r]] '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)'
 +
 
 +
== See also ==
 +
* {{aws ec2}}
 +
 
 +
[[Category:AWS]]

Revision as of 19:09, 22 June 2022

Advertising: