Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

A simple python script that downloads and deletes files from an S3 bucket

License

Notifications You must be signed in to change notification settings

hellofiremind/s3-download-and-delete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S3 download and delete

A simple python script that downloads and deletes files from an S3 bucket

Usage

AWS_ACCESS_KEY_ID=KEY AWS_SECRET_ACCESS_KEY=SECRET python go.py --bucket=BUCKET --directory=RELATIVE_PATH

If you get an error like: "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint"; then simply added the bucket's region in the envrionment variable AWS_DEFAULT_REGION, eg AWS_DEFAULT_REGION=eu-west-1

About

A simple python script that downloads and deletes files from an S3 bucket

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages