AWS Lambda function to send a daily newsletter with HackerNews top posts
- Go 88.8%
- Dockerfile 11.2%
| .devcontainer | ||
| assets | ||
| db | ||
| hackernews | ||
| handler | ||
| .gitignore | ||
| credentials.example | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
hackernewsletter
Command to build the executable for manual upload to Lambda: GOOS=linux CGO_ENABLED=0 go build -o main .
Required variables:
- FETCH_SIZE: how many news to fetch
- BATCH_SIZE: batch size for DB write
- REGION: AWS region
- SENDER: sender email address
- RECIPIENT: recipient email address