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