Difference between revisions of "InstanceId"
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
aws ec2 describe-instances | egrep "InstanceId|InstanceType|running"
aws ec2 describe-instances | jq -r '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)'
See also
- AWS EC2, AWS::EC2,
aws ec2
[describe-instances | describe-instance-status
|run-instances | terminate-instances | stop-instances
|tags
|describe-vpcs
|describe-addresses
|describe-availability-zones
|describe-subnets
|import-key-pair
|create-key-pair
|create-vpc
|create-internet-gateway
|modify-instance-attribute | ec2-instance-connect | get-console-output
]
Advertising: