Hi, I am using Pulumi ESC. Any way to transfer en...
# general
b
Hi, I am using Pulumi ESC. Any way to transfer environments from a user to an organization? Probably not possible with the UI, but I was looking at
EscClient.clone_environment
method in the python library, which seems to be what I want, except that it only supports cloning environments within the same org. Do you have any recommendatinon on how to achieve this?
f
We don't currently have built-in support for transferring environments between orgs. The way to do this is to copy the environment definition and paste it in a new environment in your org, either manually or programmatically through the API or ESC SDK
b
Ok thanks! Is there something like
clone_environment
method I can use?
Specifically to copy secrets
copy-pasting from the UI probably does not work, since only the cyphertext is there
and I am not sure there’s a clean way of doing that from the python lib either?
f
Ah right, the decrypt API
/api/esc/environments/{org}/{project}/{name}/decrypt
should return the definition with the secrets in plaintext. the SDK should also support this (should be
decrypt_environment
in python)
b
Thank you! Will take a look 🙂