Difference between revisions of "PublicIpAddress"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | *<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 == | == Related terms == |
Revision as of 09:36, 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
aws ec2 describe-addresses | grep PublicIP
See also
Advertising: