Kiran Yadav
Kiran Yadav

Reputation: 11

List private IP addresses of EC2 instances of particular project in OEC

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

Answers (1)

John Rotenstein
John Rotenstein

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

Related Questions