https://pulumi.com logo
#general
Title
# general
b

best-waiter-16927

12/08/2019, 11:46 AM
Can someone explain the following warning when running `pulumi stack ls -a -j`:
Copy code
warning: 194 stacks were omitted from the results.
w

white-balloon-205

12/08/2019, 3:51 PM
Cc @colossal-beach-47527 who may know the answer to this.
c

colossal-beach-47527

12/09/2019, 12:26 AM
It isn’t anything to be worried about. When you run
pulumi stack ls
we cap the results at 300 stacks returned. So if you are in an organization with many stacks you might need to narrow down your search by adding a project filter (
--project
), which should be inferred by the
Pulumi.yaml
file in the current directory. If you really want all the stacks, and don’t mind if the request takes a long while to serve, you can hit our REST API directly using something like:
Copy code
curl \
    -H "Authorization: token ${PULUMI_ACCESS_TOKEN}" \
    "<https://api.pulumi.com/api/user/stacks?maxResults=600>"
(And you can specify other filters by passing
organization
,
project
,
tagName
, or
tagValue
URL query parameters.
b

best-waiter-16927

12/09/2019, 9:11 AM
@colossal-beach-47527 Thanks for the detailed answer. The API call helps a lot!! I would recommend adding the 300 Max to the documentation so users will not rely on it (as we did) with their automation tools.
Another question, if i use a tag filter with the CLI will it still hide results? Cause i still see the warning. Where as if i use the project filter i don't
w

white-balloon-205

12/09/2019, 4:23 PM
I opened https://github.com/pulumi/pulumi/issues/3620 to track improving this. @best-waiter-16927 Feel free to add other notes there as well.
b

best-waiter-16927

12/10/2019, 12:47 PM
👍🙏