https://pulumi.com logo
Title
c

cold-coat-35200

01/20/2020, 2:51 PM
Hi, is there any reason why
yaml.ConfigGroup
yaml
field does not accept
Pulumi.Input<string>
? This way I'm unable to pass a string created from an output, for example from a secret
b

better-rainbow-14549

01/20/2020, 3:56 PM
i noticed that too
you can always pulumi.output(myinput).apply(yaml => {}) though
c

cold-coat-35200

01/20/2020, 6:44 PM
not recommended to create resources inside apply, because unable to see them during preview, they're not part of the dependency graph
💯 1
if it's not by design works this way, then should be fixed
w

white-balloon-205

01/20/2020, 7:40 PM
I think the reason it does not currently accept Input is actually the same one you point out - it can’t know what actual resources to create until the yaml is available - and if it accepted input it would have to do the same “create resources inside apply” in its implementation.
c

cold-coat-35200

01/21/2020, 11:19 AM
it's true 🙂