How to show public ip of AWS Ec2 instance


Run command to show the public IP address of Ec2 instance

aws ec2 describe-instances --instance-ids Instance-ID-here | grep PublicIpAddress | awk -F ":" '{print $2}' | sed 's/[",]//g'
Share on Google Plus

About Md. Shahzad Alam

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment