green-oxygen-75202
06/21/2023, 8:28 AMpulumi destroy
pulumi stacks with Pulumi CLI that were originally created with Pulumi CLI (which have a Pulumi.yaml file on the file system). Now i try to do the same for stacks that were originally created using the Pulumi Automation API (which do not have Pulumi.yaml files on the file system), but this does not seem to work. It complains about seraching for and not finding a Pulumi.yaml file in parent directories. The thing is that i succesfully CAN pulumi rm
stacks with Pulumi CLI that were originally created with the Pulumi Automation API. But of course that leaves the Pulumi Resources "orphaned" since pulumi rm
does not destroy the resources itself, but only the Pulumi state in Pulumi Cloud. So what i would like to achieve is to be able to pulumi destroy
resources with Pulumi CLI that were originally cretated using the Pulumi Automation API. Is this implemented or on the roadmap?miniature-musician-31262
06/21/2023, 9:59 AM--stack
(or -s
) option — for example, pulumi destroy -s myorg/myproject/mystack
. Have you tried this?green-oxygen-75202
06/21/2023, 10:01 AMminiature-musician-31262
06/21/2023, 10:04 AMgreen-oxygen-75202
06/21/2023, 10:06 AMpulumi destroy -s
, while it does NOT need a Pulumi.yaml to do pulumi rm -s
on stacks that were originally created with Pulumi Automation APIminiature-musician-31262
06/21/2023, 10:09 AMgreen-oxygen-75202
06/21/2023, 10:12 AM