More than 5 years have passed since last update.
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
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
