Previously, I was able to find the auto-assigned IPv6 address of an Amazon EC2 instance with something like the following:
aws ec2 describe-instances --region us-west-2 --instance-id i-09eca7af84e1ef806 \
| jq .Reservations[].Instances[].NetworkInterfaces[].Ipv6Addresses[]
(if you're unfamiliar, jq is a tool to process JSON data; in this case I'm using it to extract the value described in https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html)
I can see the corresponding IPv6 address in the AWS console, so I know an address has been assigned to the instance. But I can't find a way to get that information using the AWS command-line tool.
The documentation at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#view-ipv6-addresses seems to be the most pointed place describing how to get IPv6 addresses, but the documentation no longer seems to be correct.
This worked up until about a month ago. Now I can't find any way to get the address for an instance.
0 Answers