Score:0

determine IPv6 address of AWS EC2 instance from CLI

in flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.