Skip to content
Bash functions for Amazon S3. (Not complete, just scratching my itch)
Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
s3.sh

README.md

s3.sh

Bash functions for Amazon S3. (Not complete, just scratching my itch)

API

s3_url ${bucket} ${path}

Returns a url for the given ${bucket} and ${path}.

s3_signed_url ${httpMethod} ${bucket} ${path} ${awsKey} ${awsSecret} ${expires:-$((`date +%s`+60))}

Returns a signed url, suitable for making requests to a private s3 object.

Dependencies:

  • date, if ${expires} parameter is not provided
  • openssl
Something went wrong with that request. Please try again.