Difference between revisions of "InstanceId"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
[[aws ec2 describe-instances]] | [[jq -r]] '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)' | [[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 | ||
== See also == | == See also == |
Revision as of 19:21, 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)' i-001d6ef48fd7da240 t3.xlarge YourExample-workers-Node i-00b1cf99a8fd118aa t2.large your-machine-name i-0a81356d71229695f t3.xlarge YourExample-workers-Node
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: