wet-noon-14291
01/13/2022, 12:40 PMpulumi stack rename <new-name> -s <old-name>
doesn't work. Output from this is:
error: no Pulumi project found in the current working directory. If you're using the --stack
flag, make sure to pass the fully qualified name (org/project/stack)
Do I have to be in a project directory to rename a stack?full-sugar-56177
01/13/2022, 1:35 PMpulumi stack rename
command. Perhaps there is a more convenient but I don't know it:
Recovering Configuration
Deleting this stack or this stack's resources requires that you have a Pulumi.yaml
file in the same directory.
If you no longer have access to the Pulumi program's source code, you can recreate the configuration files with the following commands:
# Pulumi.yaml
echo "name: project-name" > Pulumi.yaml
echo "runtime: nodejs" >> Pulumi.yaml
# Pulumi.stack-name.yaml
pulumi stack select org-name/project-name/stack-name
pulumi config refresh