New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-s3-sync

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-s3-sync

This is a WIP. However it does work as stands for uploading your /dist directory to specified bucket. Still -use at your own risk :)

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

Ember-cli-s3-sync

This is a WIP. However it does work as stands for uploading your /dist directory to specified bucket. Still -use at your own risk :)

TODO

  • 100% test coverage
  • write documentation for each function
  • write documentation describing flow, configurable options, general how to use
  • ability to save config file as config-s3.json in project's directory
  • ability to generate config-s3.js for deploy configuration
  • ability to specify optional params in config-s3.json to be prompted for
  • ability to sync individual files to s3 bucket
  • ability to create bucket if specified bucket doesn't exist
  • ability to authenticate using IAM roles
  • ability to do a dryrun
  • ability to skip build task and just deploy a specified directory
  • update s3 with file's ContentMD5, preferrably async after upload

Install

  • npm install ember-cli-s3-sync --save-dev
  • npm install

Using with your AWS creds

This addon uses aws-sdk so you get some pretty stable behavior when making requests to S3. AWS credentials can be provided in several ways, hopefully satisfying most development environments. Listed below is the order of preference for AWS credentials

Anything included as a command line argument is king of the hill:

  1. ember deploy:s3 --awsSecret=my-secret --awsKey=my-cool-key
  2. shared credentials file at ~/.aws/credentials file.
  3. these shell environment variables: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
  4. deploy/config.js
  {
    "options": { "accessKeyId": "mycoolkey", "secretAccessKey": "secretsarecool" }
  }

note if key & secret aren't found at any of the checks above then you will be prompted for credentials -blocking the deploy (keep this in mind if using with automated/continuous deployment systems).

How to use

ember deploy:s3 --environment=development --aws-key=12345 --aws-secret=asdfasdf --aws-bucket=buckets-o-fun

  • this builds a development version of your app and deploys all files in the /dist directory to the S3 bucket "buckets-o-fun"

ember deploy:s3

  • this will build development version of your app and prompt you for awsKey, awsSecret, and awsBucket

possible cli arguments:

  • environment (optional) uses app's default
  • outputPath (optional) uses app's default /dist
  • awsKey (required. will prompt if not provided as cli arg)
  • awsSecret (required. will prompt if not provided as cli arg)
  • awsBucket (required. will prompt if not provided as cli arg)
  • awsRegion (optional. will verify the specified region with aws)

Configuring deployment

  • deploy/config.js

Keywords

FAQs

Package last updated on 08 Feb 2015

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