Issue
I am trying a quick way to list/output all instances type running in my environment. Nothing else just a list of those InstanceType
.
I can easily get them on the console but it's a bit time consuming.
Thanks in advance!
Solution
AWS CLI -
aws ec2 describe-instances --region eu-west-1 --query 'Reservations[*].Instances[*].InstanceType' --output text | sort | uniq
In AWS web console - You can also use AWS Config -> Advanced queries -> Query editor as shown below. Output can be exported as json or csv. Also have aws cli for this.
Answered By - amitd