startage - lambda for static startpage

2 minute read Published: 2022-02-15

generate a startpage of links for a static site hosted via AWS

What It Is

What Could Be Better

How to Use It

note: the feeds and startpage are not generalized - they are what I personally use. If you wish to you this I'd recommend fork -> update these to your liking.

  1. Create a Lambda function.

  2. Give the Lambda write access to the static site's S3 bucket.

  3. Give it some environment variables:

    S3_BUCKET_REGION=<aws_region>
    S3_BUCKET=<bucket_name>
    S3_FILE_KEY=<startpage_uri>
    
  4. Configure Cloudwatch Eventbridge to call the function at whatever rate you wish

  1. After any updates to the template, feeds, or lambda function, run scripts/update.sh