goapplambda

module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2023 License: Apache-2.0

README

goapplambda

Example of how to deploy go-app application using s3, lambda, and cloudfront.

setup steps

  • Create lambda function with a function url enabled. (goapplambda in this example)
  • Create a S3 bucket to hold the web resources. (mlctrez-goapplambda in this example)
  • Create a cloudfront distribution with the default origin pointing to the lambda function url.
  • Add an origin to the cloudfront distribution for the s3 bucket.
  • Add a behavior matching /web/* to be routed to the s3 bucket origin.
  • Create a cloudfront function applied to the /web/* behavior to set the wasm size header. (goapplambda-wasmsize in this example)
  • Optionally, add a custom CNAME and SSL certificate to be used instead of the default xxx.cloudfront.net name.

demo

example deployment

Go Report Card

created by tigwen

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL