Skip to content

Pulumi Stack Rename docs: additional undocumented steps #16958

@davecluderaythinventory

Description

@davecluderaythinventory

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 the name field 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions