You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using atomation api to launch pulumi programs, so I don't have Pulumi.yaml. Want to rename the stack, so I try rename command and get:
pulumi stack rename stack-new-name --stack user/proj/stack-name
error: no Pulumi.yaml project file found (searching upwards from ..). If you have not created a project yet, use `pulumi new` to do so: no project file found
Other commands too require the file, though some don't, for example, pulumi stack rm --stack user/proj/stack-name works without Pulumi.yaml.
Adding simple Pulumi.yaml with name and runtime works, but seems that it should not be required.
CLI
Version 3.97.0
Go Version go1.21.5
Go Compiler gc
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
wclr
changed the title
Some commands with -s and full stack name flag still Pulumi.yaml
Some commands with -s and full stack name flag require Pulumi.yaml
May 18, 2024
Thanks for opening the issue, @wclr. We should be able to make rename work when the Pulumi.yaml file isn't found. We're really looking for the old Pulumi.<stack-name>.yaml containing the stack config so it can be renamed to the new stack name, but if we can't find it, it's reasonable to still allow the rename to work (though, we may want to emit a warning in that case).
What happened?
I'm using atomation api to launch pulumi programs, so I don't have
Pulumi.yaml
. Want to rename the stack, so I tryrename
command and get:Other commands too require the file, though some don't, for example,
pulumi stack rm --stack user/proj/stack-name
works withoutPulumi.yaml
.Adding simple Pulumi.yaml with
name
andruntime
works, but seems that it should not be required.Example
pulumi stack rename stack-new-name --stack user/proj/stack-name2
Output of
pulumi about
CLI
Version 3.97.0
Go Version go1.21.5
Go Compiler gc
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: