Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@felixdulfer/s3-upload

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@felixdulfer/s3-upload

> Simple Amazon S3 upload CLI tool.

latest
Source
npmnpm
Version
1.3.1
Version published
Maintainers
1
Created
Source

s3-upload

Simple Amazon S3 upload CLI tool.

Prerequisites

  • Node
  • AWS S3 Credentials (TODO: Link to AWS CLI/env var setup)

Usage

Create a YAML manifest

Example manifest.yaml:

entry:
  manifest:
    - glob:
        pattern: "*.html"
        options:
          cwd: dist
      s3:
        Bucket: my-bucket
        ACL: public-read
        CacheControl: "public, max-age: 60"
        StorageClass: REDUCED_REDUNDANCY

Any yaml is OK, as long as yaml supports it. This includes the use of anchors.

Upload

$ s3-upload manifest.yaml

If you want to use a different AWS Profile that is configured in ~/.aws/, then simply pass the name of the profile along using environment variables:

$ AWS_PROFILE=my-profile s3-upload manifest.yaml

Environment variables

Environment variables in the yaml manifest will be replaced.

entry:
  manifest:
    - glob:
        ...
      s3:
        Bucket: ${MY_BUCKET}
        ...

Deploying new versions

$ np

FAQs

Package last updated on 26 Aug 2021

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