How to add environment variable to CloudFront function in CDK?
I've created an CloudFront function in CDK:
func = cloudfront.Function(
self,
"redirect",
code=cloudfront.FunctionCode.from_file(
file_path="lambda/function.js",
),
)
How can I add an environment variable to this function?
from Recent Questions - Stack Overflow https://ift.tt/3pHG88m
https://ift.tt/eA8V8J
Comments
Post a Comment