This message was deleted.
# aws
s
This message was deleted.
m
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.
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.
Copy code
const code = pulumi.apply(output) => {
return `function handler(event) { console.log("${output}");
return event.request;
}`