-
Notifications
You must be signed in to change notification settings - Fork 261
Description
File: content/docs/iac/cli/commands/pulumi_stack_rename.md
The documentation states the following:
You can also rename the stack’s project by passing a fully-qualified stack name as well. For example: ‘robot-co/new-project-name/production’. However in order to update the stack again, you would also need to update the name field of Pulumi.yaml, so the project names match.
This is very helpful, and we used this feature recently. We did, however, need to perform additional steps - while the stack settings file was renamed correctly as part of the process, but its config section was left using the old project name prefix on any project-namespaced keys.
Maybe the docs could be updated to mention this additional step, e.g.
You can also rename the stack’s project by passing a fully-qualified stack name. For example:
robot-co/new-project-name/production. However, in order to update the stack again, you would also need to:
1. Update thenamefield in Pulumi.yaml, to reflect the new project name.
2. Update any project-namespaced configuration variables in the stack settings file (e.g. Pulumi.production.yaml).