great-sunset-35502/17/2022, 8:11 AM
limited-rainbow-5165002/17/2022, 8:25 AM
. https://www.pulumi.com/docs/intro/concepts/inputs-outputs/#all Starting from outputs needed for the calculation of the user data, you pass these to
as a list, then call
passing it a callback function. The callback function will be invoked by Pulumi by the time the actual values of your outputs are known. The arguments to your callback function will be the actual values that you can use to calculate the user data. The value of the user data is the return value of the callback function.
will wrap this again in an
which you can then pass to the resource taking this as an
, e.g. an AWS EC2 resource. Hope my explanation makes sense.
great-sunset-35502/17/2022, 10:35 AM
library to render the yaml.
const cloudInitYaml = pulumi.output(cloudInitConfig).apply(yaml.dump);