s3-downloader

command module
v0.0.0-...-cd61379 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MIT Imports: 10 Imported by: 0

README

S3 Downloader

This utility is a simple command-line tool written in Go for downloading files from Amazon S3. It takes an S3 URI and a local file path as input and saves the S3 object to the specified local path.

Requirements

  • Go 1.x or later.
  • AWS credentials configured (either via environment variables, AWS credentials file, or IAM roles if running on AWS services like EC2).

Installation

To install this utility, clone the repository and build the binary:

go build -o s3downloader

Usage

Run the tool with the following command:

./s3downloader -s3uri s3://bucket-name/path/to/item -output /path/to/local/file

Arguments

  • s3uri: The S3 URI of the file to download (format: s3://bucket-name/path/to/item).
  • output: The local path where the downloaded file should be saved.

Example

./s3downloader -s3uri s3://mybucket/myfolder/myfile.txt -output ./myfile.txt

This command will download myfile.txt from s3://mybucket/myfolder/ in S3 to the current directory.

Licence

This project is licensed under the MIT License - see the LICENSE file for details

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL