How to get Ec2 instace ID from AWS cli

Run command to get Ec2 Instance ID from CLI
 $ aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId]' --output text


Share on Google Plus

About Penguin Technology

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

1 comments: