sparse-intern-71089
04/18/2019, 5:49 PMincalculable-sundown-82514
04/18/2019, 5:51 PMapply transforms an Output into another Output by running a function on the value within that Output. lambda n: n is the identity function, so what you get is record.name, which is an output.
You can’t operate directly with outputs, but you can use apply to transform them and you can pass them directly to other resources: https://pulumi.io/reference/programming-model.html#outputsfast-whale-9064
04/18/2019, 5:58 PMincalculable-sundown-82514
04/18/2019, 5:59 PMrecord.name.apply(lambda n: n) is a no-op transformation on record.name, whereas the thing you linked transforms an output by putting https:// on the front of it.incalculable-sundown-82514
04/18/2019, 6:00 PMOutput, but one that has been transformed according to your functionfast-whale-9064
04/18/2019, 6:03 PMincalculable-sundown-82514
04/18/2019, 6:03 PMincalculable-sundown-82514
04/18/2019, 6:04 PMfast-whale-9064
04/18/2019, 6:04 PMfast-whale-9064
04/18/2019, 6:05 PMapply was to force a dependencyincalculable-sundown-82514
04/18/2019, 6:06 PMincalculable-sundown-82514
04/18/2019, 6:07 PMfast-whale-9064
04/18/2019, 6:22 PMfast-whale-9064
04/18/2019, 6:22 PMdepends_on to work for me, though. Thanks @incalculable-sundown-82514!incalculable-sundown-82514
04/18/2019, 6:23 PM