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


Post a Comment

Mới hơn Cũ hơn