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

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation