https://pulumi.com logo
c

crooked-pillow-11944

09/17/2021, 12:48 AM
Is there a way to set a project to encrypt all exports by default?
l

little-cartoon-10569

09/17/2021, 1:46 AM
No. each one must be wrapped in
pulumi.secret()
.
c

crooked-pillow-11944

09/17/2021, 2:04 AM
When I wrap a string inline I get this error:
Copy code
python inline source runtime error: module 'pulumi' has no attribute 'secret'
l

little-cartoon-10569

09/17/2021, 2:26 AM
Sorry, I gave you the typescript answer...
I can't read the python docs. This is the link on the static function you need. No idea how to call it... https://www.pulumi.com/docs/reference/pkg/python/pulumi/#pulumi.Output.secret
f

famous-leather-94346

09/17/2021, 10:38 AM
@crooked-pillow-11944
Copy code
pulumi.Output.secret(...)
c

crooked-pillow-11944

09/17/2021, 10:47 AM
Thanks @famous-leather-94346!