https://pulumi.com logo
#general
Title
# general
q

quick-wolf-8403

05/08/2022, 4:27 PM
Hello folks. I'm trying to rename a project as I move it into another repository and expand it. I created a new destination project and wondered if I could use
pulumi config cp
to move secrets and config entries from the old stack.
b

billowy-army-68599

05/08/2022, 4:38 PM
you should just be able to update the name in the
Pulumi.yaml
I believe, although I hvan't tried this with secrets
q

quick-wolf-8403

05/08/2022, 6:15 PM
That's good to know. Secrets did indeed cause a problem, though:
Copy code
error: failed to decrypt encrypted configuration value 'tokens-secrets:NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID': [400] Message authentication failed
This can occur when a secret is copied from one stack to another. Encryption of secrets is done per-stack and
it is not possible to share an encrypted configuration value across stacks.

You can re-encrypt your configuration by running 'pulumi config set tokens-secrets:NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID [value] --secret' with your
new stack selected.

refusing to proceed
I guess I'll loop through the secrets and try the error message's suggestion.
28 Views