https://pulumi.com logo
Title
s

strong-musician-98782

10/22/2020, 12:48 PM
Hey guys, so i'm working on a dynamic provider for dyndns and it seems to be working quite well.... my only issue is that i keep sending my dyndns username and password to pulumi as outputs even though they are only configured as inputs.... am i doing anything wrong? i've been using https://github.com/pulumi/examples/blob/master/aws-py-dynamicresource/mysql_dynamic_provider.py as an example, in this example what would i need to do in order to not send any of the variables as outputs to pulumi?
c

cool-fireman-90027

10/23/2020, 12:56 PM
HI @strong-musician-98782, These lines are where outputs are created: https://github.com/pulumi/examples/blob/master/aws-py-dynamicresource/mysql_dynamic_provider.py#L88-L90 If you remove the
creator_name
(assuming this matches dyndns_username) and
creator_password
(dyndns_password) then they won’t be outputs.
s

strong-musician-98782

10/25/2020, 2:30 PM
@cool-fireman-90027 actually i thought so too so i tried removing them from the output list but they kept showing as outputs, is it possible there's some kind of cache or anything? thanks alot for your help 🙂
c

cool-fireman-90027

10/26/2020, 1:00 PM
@strong-musician-98782, You can mark your inputs and outputs as secret using the
additionalSecretOutputs
property: https://www.pulumi.com/docs/intro/concepts/programming-model/#additionalsecretoutputs There is a database example that shows how to mark the db password as a secret. Can you share your code(scrub out you want)? This example: https://github.com/pulumi/examples/tree/master/aws-py-dynamicresource only has one output: dynamic-resource-id