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
posta 4 anni fa274 visualizzazioni
1 Risposta
0

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

swkls
con risposta 4 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande