Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 913 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 913 Bytes

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