Chatbot in Slack

0

Using the aws cli in a PowerShell prompt to query the names of Lightsail instances I use "aws lightsail get-instances --query instances[].name" and it works fine.

The same command using the AWS Chatbot in Slack gets hung up on the instances[].name portion of the command. Is there another way to retrieve just the names of the instances?

Edited by: swkls on Oct 23, 2020 7:01 AM

swkls
asked 4 years ago267 views
1 Answer
0

I was not using the correct syntax. This worked: @aws lightsail get-instances --query Instances[*].Name --region us-east-1

swkls
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions