If the value is known when Pulumi runs you can capture the values you want in the body of the function (at least in javascript/typescript).
Or you can set the configuration as environment variables for the deployed function.
miniature-king-36473
01/10/2022, 3:49 PM
Apologies misread your question - Cloudfront Functions, not Lambda@Edge. For CF Functions pulumi requires the source code as a string and don't do capture of the function.
You can create the code string dynamically using pulumi outputs. e.g.