Skip to content

Small program allowing to download and upload files from/to s3 bucket. In use to manage Pulumi stack files

Notifications You must be signed in to change notification settings

romachalm/s3-utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

S3 Utility

This small utility allows to upload and download files to/from bucket

Authentication

With AWS profile

If a profile can be used (ie ~/.aws/config), expoert the profile to be used.

export AWS_PROFILE=my-profile

With Envvars

The authentication can be passed as EnvVars as following

export AWS_ACCESS_KEY_ID=XXX
export AWS_SECRET_ACCESS_KEY=XXX
export AWS_REGION=us-east-1

Usage

Upload a file

s3-utility upload [bucket_name] [local_file]

Download a file

s3-utility download [bucket_name] [local_file]

It will fail if local_file already exists locally

Install

go get github.com/romachalm/s3-utility

About

Small program allowing to download and upload files from/to s3 bucket. In use to manage Pulumi stack files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages