Warm tip: This article is reproduced from stackoverflow.com, please click
amazon-web-services aws-cli jmespath

How can I get unique values in array in a jmespath query?

发布于 2020-05-22 10:24:42

In an aws cli jmespath query, with for example the output ["a","a","b","a","b"], how do i extract the unique values of it to get ["a","b"]?

Questioner
xor
Viewed
159
Jordon Phillips 2016-05-06 01:49

Unfortunately this is not currently possible in jmespath.