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
cold-coat-35200
01/20/2020, 6:45 PM
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.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.