Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastboot-s3-fetch-notifier

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastboot-s3-fetch-notifier

A FastBoot App Server notifier for AWS S3

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

FastBoot S3 Fetch Notifier

This notifier for the FastBoot App Server works with AWS S3 to poll an object's Last Modified header to detect when you have deployed a new version of your app. This notifier is a fork of fastboot-s3-notifier, that makes use of node-fetch instead of the s3 client.

To use the notifier, configure it with an S3 host, bucket and key:

const S3Notifier = require('fastboot-s3-notifier');

let notifier = new S3Notifier({
  host: "s3.eu-central-1.amazonaws.com",
  bucket: "bucketname",
  key: "path/to/fastboot-deploy-info.json",
});

let server = new FastBootAppServer({
  notifier: notifier
});

When the notifier starts, it will poll the object at the specified bucket and key. Once the LastModified metadata changes, it will tell the FastBoot App Server to fetch the latest version of the app.

Note that you should point the notifier at a static path on S3, like fastboot-deploy-info.json. That JSON file should then point the app server to the latest application bundle. This way, you don't have to propagate configuration changes to all of your app servers, and they can poll a single key in perpetuity.

If you like this, you may also be interested in the companion fastboot-s3-downloader, which parses the above-described JSON file to find and download the latest version of your app.

Keywords

FAQs

Package last updated on 17 May 2020

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc