New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

s3url

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

s3url

a 's3url' command for generating s3 signed urls

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

S3Url

A small command line tool to generate signed S3 url for the EU WEST 1 region

Install

npm install s3url

Usage

The usage is very straightforward

s3tool --expires 30 resource_url

where resource_url is an url in the following form

/<bucket>/<key>

and "expires" is the number of seconds the url will be available. For example if the bucket is "foo" and the key is "bar/baz", the command will be:

s3tool --expires 30 /foo/bar/baz

Authentication

You can supply authentication credentials in two ways:

  • command line parameters
  • environment variables

In the first option, you can pass the parameters --key and --secret to the command line and provide credentials. For example:

s3tool --key THISISTHEKEY --secret THISISTHESECRET resource_url

In the second options, just export two environment variables containing the key and the secret:

export S3URL_KEY="THISISTHEKEY"
export S3URL_SECRET="THISISTHESECRET"
s3tool --expires 30 resource_url

Keywords

s3

FAQs

Package last updated on 10 Dec 2012

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