Hey guys, so i'm working on a dynamic provider for...
# python
s
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
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
@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
@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