List Instances of all T1.micro types
AWS EC2 describe-instances--output Table--query ' reservations[]. Instances[]. [Join (', ', tags[? key== ' Name ']. Value), Instanceid,state.name,publicdnsname] '--filters ' {"Name": "Instance-type", "Values": ["T1.micro"]} '
list the volume types for all EC2
AWS EC2 Describe-volumes--query ' volumes[*]. [Volumeid, Attachments[0]. Instanceid,volumetype] '
list Elb and the instance involved
AWS Elb Describe-load-balancers--query ' loadbalancerdescriptions[]. [Loadbalancername,instances] '
Here are some nice things:
AWS Elb Describe-load-balancers--query ' loadbalancerdescriptions[]. [Loadbalancername,join (', ', instances[]. INSTANCEID)] '
list Elb's listener
AWS Elb Describe-load-balancers--query ' loadbalancerdescriptions[]. [Loadbalancername,join (', ', instances[]. INSTANCEID), listenerdescriptions[*]] '
list CloudFront using the default SSL certificate with the custom certificate (none is using the CLOUDFRONTM default certificate)
AWS CloudFront List-distributions--query ' distributionlist.items[]. [Id,viewercertificate.iamcertificateid] '--output table
list rtmp Types
AWS CloudFront List-streaming-distributions--query ' streamingdistributionlist. Items[]. [Id,viewercertificate.iamcertificateid] '--output table
List of instance using EIP
AWS EC2 describe-addresses--output Table--filters "name=domain,values=vpc"--query "addresses[". [Instanceid,publicip] '
list autoscaling groups and the instance involved
AWS AutoScaling Describe-auto-scaling-groups--query ' autoscalinggroups[]. [Autoscalinggroupname,join (', ', Instances []. InstanceId)] '--output table
AWS AutoScaling Describe-auto-scaling-groups--query ' autoscalinggroups[]. [Autoscalinggroupname,join (', ', Instances []. InstanceId)] '--output table
This article is from the "Technical Blog" blog, please be sure to keep this source http://raytech.blog.51cto.com/7602157/1684698
Learn the Amazon CLI simple to use