Delayed Mälartåg, gotta catch 'em all!
npm install
-
Create IAM user. If lazy, the
AdministratorAccess
permission is sufficient. -
Fill in IAM credentials in
.env
file.
cp .env.example .env
-
Download the AWS CLI.
-
Create a DynamoDB table. Replace
malartag-scraper-table
with your table name. -
Create a Lambda function. Replace
malartag-scraper-function
with your function name.
-
Set Timeout to 10 seconds minimum.
-
Add environment variable
NODE_ENV
:production
. -
Add the following permission (role name):
AmazonDynamoDBFullAccess
.
npm start
Make sure you are logged in to AWS CLI.
npm run zip
npm run updateLambda
Add AWS EventBridge trigger to your lambda function.
Schedule to run once every 24 hours at 03:00 UTC: cron(0 3 * * ? *)
.
See the form-filler directory for more information.