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

fresh-chef-62390

03/08/2019, 12:55 AM
Hello, how to show the resources used by some stack?
Copy code
$ pulumi  stack ls
NAME       LAST UPDATE  RESOURCE COUNT
demo-dev*  2 weeks ago  2
$ pulumi  stack rm demo-dev
This will permanently remove the 'demo-dev' stack!
Please confirm that this is what you'd like to do by typing ("demo-dev"): demo-dev
error: 'demo-dev' still has resources; removal rejected; pass --force to override
g

gentle-diamond-70147

03/08/2019, 1:21 AM
pulumi stack
will show you the resource list
as an example...
Copy code
17:21:25 [stack-base-infra] $ pulumi stack
Current stack is dev:
    Owner: clstokes
    Last updated: 2 days ago (2019-03-05 13:30:39.691765 -0800 PST)
    Pulumi version: v0.16.18
    Plugin nodejs [language] version: 0.16.18
    Plugin azure [resource] version: 0.16.9

Current stack resources (5):
    TYPE                                         NAME
    pulumi:pulumi:Stack                          base-infra-dev
    pulumi:providers:azure                       default
    azure:core/resourceGroup:ResourceGroup       main
    azure:network/virtualNetwork:VirtualNetwork  main
    azure:network/subnet:Subnet                  main
...
f

fresh-chef-62390

03/08/2019, 1:23 AM
thanks