I have a Lambda function in GoLang, I want to have CDN on it for region based quick access (I think Cloudfront can help me do that on AWS).
Researched so far:
- I saw that Lambda@Edge is there to quickly have a Lambda function on Cloudfront, but it only supports Python and Node. There is an unattended active Issue for Go on Edge: https://github.com/aws/aws-lambda-go/issues/52.
- This article also mentions of limitation with GoLang: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html.
Cloudfront package in GoLang
There exists this official Go package for Cloudfront, this might be helpful: https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfront/ and https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/cloudfront.
Expectations
I just want a way to host my existing Lambda functions on a CDN either using Cloudfront or something else.