1.0.0 • Published 8 months ago

s3-deploy-tool v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

s3-deploy-tool

Simple tool for deploy static files for web site to s3 buckets

Installing

npm i s3-deploy-tool

Usage example

via nodejs

import { deploy } from 's3-deploy-tool';

deploy(
  'path/to/folder',
  {
    endPoint: example.com,
    accessKey: ********,
    secretKey: ********,
    port: 9000,
    useSSL: true,
  },
  'test_bucket_name',
  'prefix',
);

deploy() will delete all files from bucket or folder if prefix provided and load files from specified folder

via npx

npx s3-deploy-tool --path path/to/folder --endpoint example.com --key ******** --secret ******** --port 9000 --bucket test_bucket_name --prefix prefix

Full args list

--help: show all args in console
--path: folder path with files for upload
--bucket: bucket name where files upload
--prefix: prefix where files will be upload
--endpoint: specify endpoint url for s3 bucket
--key: specify access key for s3 bucket
--secret specify secret key for s3 bucket
--port: specify port for s3 bucket, default 80 or 443
--disable-ssl: disable secure access 
1.0.0

8 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago