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
質問済み 4年前274ビュー
1回答
0

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

swkls
回答済み 4年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ