Reputation: 11
I want to list all the Private IP address of my EC2 instances of particular project in OEC using AWS CLI, what AWS CLI command i can use to get this info?
Upvotes: 0
Views: 524
Reputation: 269370
Assuming that your project information is kept in a Tag on the Amazon EC2 instance, you would use:
aws ec2 describe-instances --filters Name=tag:Project,Values=OEC --query Reservations[].Instances[].PrivateIpAddress --output text
Tags are case-sensitive.
Upvotes: 1