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

dazzling-city-47565

08/04/2021, 7:28 PM
I’m trying to split up an existing stack, but am running into an issue importing
RandomPassword
resources. Is there a way to transfer a RandomPassword resource from one stack to another? I’m not having much luck with
pulumi import
, and I’m unable to copy the resource from the state file without reencrypting the ciphertext somehow..
g

great-sunset-355

08/04/2021, 8:59 PM
I reckon one of suggested should work for you
d

dazzling-city-47565

08/04/2021, 10:05 PM
I just learned about the
pulumi stack export --show-secrets
flag, which exports the state file using plaintext secrets. I’m then able to copy the decrypted resource into the new stack state file and import it successfully 🙌