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

melodic-car-16900

12/02/2021, 6:06 PM
If I want to use data from a pulumi config file in another script (something that seeds a database) - all I want to do is decrypt the values, can I do that?
p

prehistoric-activity-61023

12/02/2021, 6:41 PM
not sure if that’s gonna help you but you can get the values (including secrets) using cmd line:
Copy code
pulumi config get <key>
m

melodic-car-16900

12/02/2021, 7:33 PM
That's an interesting idea...
r

red-match-15116

12/02/2021, 7:43 PM
You might also be able to use automation api here
what language are you using?
https://github.com/pulumi/automation-api-examples/blob/main/python/database_migration might have some ideas for what you're doing... the example is available in the other languages as well
m

melodic-car-16900

12/02/2021, 7:46 PM
typescript
r
m

melodic-car-16900

12/02/2021, 10:36 PM
Hey, just wanted to say thanks, this was exactly what I needed
r

red-match-15116

12/02/2021, 10:40 PM
Nice, that's awesome!
5 Views