VOOZH about

URL: https://qiita.com/nouphet/items/e81006b32edd722f34ca

⇱ ELBのローカル側IP、パブリック側を取得するワンライナー #AWS - Qiita


👁 Image
7

Go to list of users who liked

2

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@nouphet(Toshihiro nouphet Takehara)in👁 Image
Craftsman Software

ELBのローカル側IP、パブリック側を取得するワンライナー

7
Posted at

ローカル側のIPを取得

aws ec2 describe-network-interfaces --filters "Name=description,Values=${ELBのENIのDescription}" | jq -r '.NetworkInterfaces[] | .PrivateIpAddress' | sort

パブリック側のIPを取得

aws ec2 describe-network-interfaces --filters "Name=description,Values=${ELBのENIのDescription}" | jq -r '.NetworkInterfaces[] | .Association.PublicIp' | sort
7

Go to list of users who liked

2
0

Go to list of comments

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7

Go to list of users who liked

2