Skip to content

AWS lambda web adapter demo application using HonoJS and OpenTofu

License

Notifications You must be signed in to change notification settings

ospatil/lambda-lwa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda Web Adapter Example

AWS LWA allows running any web application on supported deployment platforms without having to adapt them to Lambda.

This example demonstrates LWA usage by deploying a simple HonoJS web application using OpenTofu.

Requirements

  • NodeJS 22.x
  • OpenTofu
  • AWS Account

Setup

After cloning, run the following commands:

make app-install
make tf-init

Development

  • Run the application: make app-dev
  • Build the application: make app-build
  • Run the built application in preview mode. LWA will use the run.sh file to start the application: make app-preview

Deployment

  • Assume a role in an AWS account.
  • Create and validate plan: make tf-plan
  • Deploy the infrastructure: make tf-apply
  • Destroy the infrastructure: make tf-destroy

About

AWS lambda web adapter demo application using HonoJS and OpenTofu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published