aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.5k stars 3.84k forks source link

(aws-cloudfront): Support bundling code for CloudFront Functions #30475

Open SydneyUni-Jim opened 3 months ago

SydneyUni-Jim commented 3 months ago

Describe the feature

Support running the code for CloudFront Functions (not Lambda@Edge) through esbuild and/or tsc.

Use Case

Proposed Solution

Other Information

No response

Acknowledgements

CDK version used

2.144.0

Environment details (OS name and version, etc.)

NodeJS/iron

pahud commented 3 months ago

I guess it's related to https://github.com/aws/aws-cdk/issues/12671 ?

SydneyUni-Jim commented 3 months ago

It's not related to #12671, at least not directly. That's about Lambda@Edge. This is about CloudFront Functions, two different things.

ref: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions.html