Socket
Socket
Sign inDemoInstall

apod-slack-lambda

Package Overview
Dependencies
58
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

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


Version published
Maintainers
1
Install size
7.90 MB
Created

Changelog

Source

1.0.2 (Dec 3, 2018)

  • Update dependencies.

Readme

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

  1. Clone this repository.
  2. Set up your AWS credentials in ~/.aws/credentials, if you haven't already.
  3. If necessary, create an IAM role for Lambda execution.
  4. Configure your Lambda execution IAM role in config/default.yml.
  5. Optional: Adjust the ScheduleExpression in config.default.yml.
  6. Configure an incoming webhook integration in Slack. Copy ./config/local.template.yml to ./config/local.yml, which is gitignored, and fill it in.
  7. Optional: To avoid rate limits with NASA's demo key, obtain your own NASA API key and configure it in ./config/local.yml.
  8. 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

FAQs

Last updated on 03 Dec 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc