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

awss3-deploy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awss3-deploy

Deploy artefacts with aws-cli to S3

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

awss3-deploy

Build Status npm version License

Deploy artefacts with aws-cli to S3

Deploys a local directory to a dest directory of an S3 bucket. Sets a cache-control header to a far-future expiry (one year) for everything except index.html, which is set to no-cache, no-store. Archives existing dest under a datetime directory scheme. Intended to be used as a TravisCI deploy script.

Installation

# pip install awscli
npm install --save awss3-deploy

Usage

BUCKET="mybucket" LOCAL_DIR="dist" UPLOAD_DIR="dev" ./node_modules/.bin/awss3-deploy

TravisCI

.travis.yml:

before_deploy:
  - export BUCKET=mybucket LOCAL_DIR=dist UPLOAD_DIR=dev
deploy:
  provider: script
  script: awss3-deploy
  skip_cleanup: true

ITYMFAQLT

I think you might frequently ask questions like these

Why not Travis' default S3 deployment provider?

  • It does not support per-object cache-control headers (yet; see: #170)
  • We needed additional life-cycle/archival rules (alternatively, AWS Lambda could be used)

Author

© 2016 Tom Vincent git@tlvince.com (https://tlvince.com)

License

Released under the MIT license.

Keywords

FAQs

Package last updated on 28 Mar 2016

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