Difference between revisions of "PublicIpAddress"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
* <code>[[aws ec2 describe-addresses]] | grep [[PublicIp]]</code> | * <code>[[aws ec2 describe-addresses]] | grep [[PublicIp]]</code> | ||
* <code>[[terraform show]] | grep -i [[public_ip]]</code> | * <code>[[terraform show]] | grep -i [[public_ip]]</code> | ||
+ | * [[PublicDnsName]] | ||
==See also== | ==See also== |
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
aws ec2 describe-addresses | grep PublicIp
terraform show | grep -i public_ip
- PublicDnsName
See also
Advertising: