ting-task-nhk-easy-lambda

command module
v0.0.0-...-a4c7ed1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 4 Imported by: 0

README

ting-task-nhk-easy Go Go Report Card

An AWS Lambda that saves NHK NEWS WEB EASY as ting.

Getting Started

First create an AWS Lambda function, click Enable VPC under Advanced settings, and select the VPC of your MySQL instance. Remember to add the security group of your Lambda function as an inbound rule to your MySQL instance.

Second, follow the instructions here to enable the Lambda to have the access to Internet.

Then run sh ./package.sh to package the function, and upload lambda.zip to your Lambda function. Also add the following environment variables to the Lambda function:

  • DB_USER_NAME: user name of MySQL database
  • DB_PASSWORD: password of MySQL user
  • DB_HOST: host of MySQL database
  • DB_PORT: port of MySQL database

Finally, create an EventBridge rule to trigger the Lambda function daily:

  1. Select Schedule as Rule type
  2. This task relies on nhk-easy-task which runs at 10:00 AM (UTC) every day, so the cron expression should be set after that, for example 30 10 * * ? *

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL