79460184

Date: 2025-02-22 19:42:19
Score: 1
Natty:
Report link

A few misunderstandings; there is no such thing as "hosting Lambda on Cloudfront".

  1. Lambda functions at CDN "at the edge" are meant for working on each request of the CloudFront distribution. The restrictions apply, these Functions do not support GO
  2. The go cloudfront sdk is to manage cloudfront services
  3. If you want to access a Lambda function from "everywhere", may be you are looking for Lambda function urls: https://docs.aws.amazon.com/lambda/latest/dg/urls-invocation.html
  4. Usually you would use API Gateway to access Lambda functions.

More to using GO Lambda on AWS: https://www.go-on-aws.com/

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gernot Glawe