Delayed Mälartåg, gotta catch 'em all!
npm install-
Create IAM user. If lazy, the
AdministratorAccesspermission is sufficient. -
Fill in IAM credentials in
.envfile.
cp .env.example .env-
Download the AWS CLI.
-
Create a DynamoDB table. Replace
malartag-scraper-tablewith your table name. -
Create a Lambda function. Replace
malartag-scraper-functionwith your function name.
-
Set Timeout to 10 seconds minimum.
-
Add environment variable
NODE_ENV:production. -
Add the following permission (role name):
AmazonDynamoDBFullAccess.
npm startMake sure you are logged in to AWS CLI.
npm run zipnpm run updateLambdaAdd 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.