Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 974 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 974 Bytes

Waku AWS Lambda Template

Introduction

This is an example setup which uses the serverless framework to deploy an application build with ⛩️ waku.gg to AWS.

Architecture

  • AWS CloudFront
  • AWS API Gateway
  • AWS Lambda
  • AWS S3 buckets

Configuration

  • copy /public/** to S3 bucket
  • CloudFront
    • /assets/, /images/ from S3 bucket
    • /* from API Gateway with Lambda Function
  • API Gateway / Lambda Function
  • serve all dynamic content
  • serve static content which is not coved by the url pattern forwarded to the S3 bucket

Important: Change client and project to be unique before you deploy!

serverless.yml:

custom:
  client: demo
  project: wakuaws

Deploy

pnpm deploy:aws

By default it will be built and deployed to you default AWS Account.

Demo App

  • /about static prerended page
  • /dir dynamic page showing the directory listing from the server