I want to run an ansible role, for all the ip address in the vpc which are running. How to get all the ip address of running instance in given vpc
Things: I have tired:
aws ec2 describe-instances --filters "Name=vpc-id, Values="vpc-******"" --query "Reservations[].Instances[].PrivateIpAddresses[*]" --output text
This is returning null