Cannot get the same results with aws cli as chatbot aws cli

0

Using the aws cli and the command returns 22 results in an array

aws codepipeline list-pipelines --query "pipelines[?ends_with(name, '-main')].name"

The attempted equivalent in slack returns 1 results in an array

@aws codepipeline list-pipelines --query "Pipelines[?ends_with(Name, '-main')].Name"

Is there any documentation on how to write and reformat a command from cli to slack aws cli format?

asked 10 months ago182 views
1 Answer
0

Hello.

Do you only get one list even if you change the query conditions?
The output may be long and paged, so why not try running the command with the "--no-paginate" option?
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codepipeline/list-pipelines.html

Also, since it is possible that you are referring to a different region, try specifying the region with "--region" and running the command.

profile picture
EXPERT
answered 10 months ago
  • Yes. I cant get any query example with a function condition to evaluate the same as normal cli.

    Thanks for the tip on no-paginate, but this did not solve it. Also the chatbot is already assigned to the region and is defaulted correctly to the region I normally use.

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