https://pulumi.com logo
Title
b

brief-car-60542

03/28/2023, 3:47 AM
Is there a way to change Project name in the
Pulumi.yaml
file?
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’.
This assumes you're using the Pulumi Service backend.
b

brief-car-60542

03/28/2023, 3:51 AM
I am not using Pulumi Service backend, will the rename cli still works for me?
g

green-stone-37839

03/28/2023, 3:52 AM
Then you should just be able to change the project name in
Pulumi.yaml
.
b

brief-car-60542

03/28/2023, 3:54 AM
if I do that, everything marked as need to recreate right?
g

green-stone-37839

03/28/2023, 3:56 AM
If you have existing resources, then yes. You can stop the replacement of these resources by using aliases. https://www.pulumi.com/docs/intro/concepts/resources/options/aliases/ Basically, aliases are a one-time operation to tell Pulumi a resource URN has changed, but you'd like to keep the existing physical resources.
b

brief-car-60542

03/28/2023, 3:57 AM
Got it, thanks!