Skip to main content
Skip table of contents

(2022.0.0) Get Public IP Address of EC2 Instance

Note: The placeholders in the code that are tagged by "<>" should be revised to match your information such as IP address, AMI ID, Instance ID, etc.

 

ws ec2 describe-instances --instance-ids <InstanceId> --query "Reservations[].Instances[].PublicIpAddress"

Next (Accessing Your EC2 Instance)>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.