Difference between revisions of "PublicIpAddress"
Jump to navigation
Jump to search
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | * <code>[[aws ec2 describe-instances]] | grep PublicIpAddress</code> | |
− | *<code>[[aws ec2 describe-instances]] | grep PublicIpAddress</code> | ||
+ | |||
+ | aws ec2 describe-instances --query 'Reservations[*].Instances[?not_null(PublicIpAddress)]' | jq -r '.[][]|.PublicIpAddress+" "+(.Tags[]|select(.Key=="Name").Value)' | ||
+ | |||
+ | == Related terms == | ||
+ | * <code>[[aws ec2 describe-addresses]] | grep [[PublicIp]]</code> | ||
+ | * <code>[[terraform show]] | grep -i [[public_ip]]</code> | ||
+ | * <code>[[aws ec2 describe-instances]] | grep [[PublicDnsName]]</code> | ||
==See also== | ==See also== |
Latest revision as of 09:48, 23 June 2022
aws ec2 describe-instances | grep PublicIpAddress
aws ec2 describe-instances --query 'Reservations[*].Instances[?not_null(PublicIpAddress)]' | jq -r '.[][]|.PublicIpAddress+" "+(.Tags[]|select(.Key=="Name").Value)'
Related terms[edit]
aws ec2 describe-addresses | grep PublicIp
terraform show | grep -i public_ip
aws ec2 describe-instances | grep PublicDnsName
See also[edit]
Advertising: