Sign in

get all running ec2 instances in a specific region. Get only their instance ids.

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
aws ec2 describe-instances --filters Name=instance-state-name,Values=running --region <region> --query 'Reservations[*].Instances[*].[InstanceId]' --output text
copied