Cloud Uploader is a CLI tool for uploading any type of files to AWS S3.
- AWS cli installed on your local machine
- An aws profile with access token and secret key that needs to be authenticated with your local cli
- An AWS S3 Bucket
The script requires a yaml configuration file to upload files to any S3 bucket. The configuration file must have the yaml extension.
config:
service: s3
localFilePath: <path to multiple files>
bucket: <s3 Bucket Name>
isMultipleFiles: <Set to true when uploading multiple files>
config:
service: s3
localFilePath: ../../reciepts
bucket: september-reciepts
isMultipleFiles: true
config:
service: s3
localFilePath: <path to single files>
fileName: <file name>
bucket: <s3 Bucket Name>
isMultipleFiles: <Set to false when uploading multiple files>
config:
service: s3
localFilePath: ../../reciepts/september.json
fileName: september.json
bucket: september-reciepts
isMultipleFiles: false
You can upload a single file or multiple files by executing the following command:
bash upload.sh <path to configuration file>