Difference between revisions of "InstanceId"
Jump to navigation
Jump to search
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | aws ec2 describe-instances | grep InstanceId | ||
[[aws ec2 describe-instances]] | egrep "InstanceId|[[InstanceType]]|running" | [[aws ec2 describe-instances]] | egrep "InstanceId|[[InstanceType]]|running" | ||
Line 6: | 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 == | ||
+ | * <code>[[aws ec2]]</code> | ||
+ | * <code>[[--instance-id]]</code> | ||
== See also == | == See also == | ||
+ | * {{AMI}} | ||
* {{AWS EC2}} | * {{AWS EC2}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 10:14, 25 September 2023
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[edit]
See also[edit]
- AWS, AMI, AFI,
aws ec2 describe-images
, Amazon Linux, Amazon Linux 2,amazon-linux-extras
, AWS CreateImage - AWS EC2, Amazon EC2 API,
aws ec2, AWS::EC2
, Amazon EC2 Spot Instances, CPU credits, Instance type, EC2 limitations, 169.254.169.254, Instance metadata and user data (IMDS),InstanceType, InstanceId
, Amazon EC2 Auto Scaling, AWS EC2 Instance Connect, launch template, lifecycle, AWS Security group (SG), Amazon EC2 Recycle Bin, Amazon EC2 Mac Instances, Global View
Advertising: