Skip to content

5. More on AWS Lambda

Tony edited this page Oct 23, 2022 · 1 revision

Pushing to AWS Lambda is pretty straightforward.

I won't go into too much detail on how to set up every individual component as AWS has pretty decent docs but I will give you a general idea of how my set up looks like.

  • I first created a Lambda instance.

  • I then created an Elastic Container Registry

    • I pull my image from Dockerhub with docker pull antoniosbarotsis/rss2email-arm:latest and then follow their instructions to tag and push this image on ECR
    • I then select "Deploy new image" on Lambda and pick this image (remember to select arm architecture)
  • I created an event trigger that runs on the CRON-job 0 8 ? * 6 * which runs at 8 in the morning of every 6th day of the week (which is Friday as they start from Sunday).

    image

  • Set up your environment variables trough Configuration > Environment Variables.

I've made a small script I use to map from feeds.txt to the FEEDS environment variable here.

Clone this wiki locally