🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

apod-slack-lambda

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apod-slack-lambda

The Astronomy Picture of the Day via Slack, with a little help from AWS Lambda

1.0.2
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

apod-slack-lambda

Send yourself the Astronomy Picture of the Day via Slack, with a little help from AWS Lambda.

I created this to learn how to use Lambda to schedule a simple task. I wanted the configuration to live in version control, and the whole thing to be deployed automatically, so I decided to use ThoughtWorks Studios' nice library node-aws-lambda.

I added functionality to automatically configure Lambda functions with scheduled events, which I later moved into its own package, node-aws-lambda-scheduler.

Deployment

  • Clone this repository.
  • Set up your AWS credentials in ~/.aws/credentials, if you haven't already.
  • If necessary, create an IAM role for Lambda execution.
  • Configure your Lambda execution IAM role in config/default.yml.
  • Optional: Adjust the ScheduleExpression in config.default.yml.
  • Configure an incoming webhook integration in Slack. Copy ./config/local.template.yml to ./config/local.yml, which is gitignored, and fill it in.
  • Optional: To avoid rate limits with NASA's demo key, obtain your own NASA API key and configure it in ./config/local.yml.
  • Deploy: node_modules/.bin/gulp deploy

Contribute

Pull requests welcome!

Support

If you are having issues, please let me know.

License

The project is licensed under the MIT license.

Keywords

apod

FAQs

Package last updated on 03 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts