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
preguntada hace 4 años274 visualizaciones
1 Respuesta
0

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

swkls
respondido hace 4 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas