CloudFront Functions definition from file
See original GitHub issueCF2 definition from a file instead from inline code
Use Case
It allows to have a cleaner code instead of mixing everything in a single cdk file. It is also easier to read.
Proposed Solution
Could be something similair with what we have for Lambda:
const vreq_function = new cloudfront.Function(this, 'Function', {
code: cloudfront.Function.Code.fromAsset('resources/my_function_code.js'),
});
Other
- 👋 I may be able to implement this feature request
- ⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Customizing at the edge with CloudFront Functions
CloudFront Functions is a native feature of CloudFront, which means you can build, test, and deploy your code entirely within CloudFront.
Read more >An Introduction To AWS CloudFront Functions
CloudFront Functions allow you to deploy serverless JavaScript functions to AWS' network of edge locations to be executed as close as ...
Read more >Serverless Framework - AWS Lambda Events - CloudFront
Amazon CloudFront is a content delivery network (CDN) service that allows Lambda functions to be executed at edge locations. Distribution configuration contains ...
Read more >AWS CloudFront Edge Functions
CloudFront Functions · is a CloudFront native feature (code is managed entirely within CloudFront) and visible only on the CloudFront dashboard.
Read more >Writing function code (CloudFront Functions programming ...
When you create a function that generates an HTTP response, make sure to choose the viewer request event type. This means that the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for continuing this work, @hoegertn ! I’m assigning the issue to you for tracking purposes.
Yes, that is already planned and I am working on it. I just wanted to get the feature out asap.