This Bash script enables you to upload files to AWS S3 using the AWS Command Line Interface (CLI). It includes functionalities for authentication, region selection, bucket creation, and file upload.
- AWS Account: Ensure you have an active AWS account. If not, you can create a free account.
- AWS CLI: Ensure AWS CLI is installed and configured on your machine.
-
Clone the repository to your local machine:
git clone https://github.com/includeSimon/cloud-uploader-cli.git
-
Navigate to the script directory:
cd cloud-uploader-cli
-
Make the script executable:
chmod +x upload_script.sh
-
Run the script for a single file using the
-s
option:./upload_script.sh -s <single_file>
- Replace
<single_file>
with the actual file name.
- Replace
-
Run the script for multiple files using the
-m
option:./upload_script.sh -m <file1> <file2>
- Replace
<file1>
and<file2>
with the actual file names.
- Replace
-
Follow the prompts to authenticate, select a region, and configure S3 buckets.
-
Choose whether to create new S3 buckets or use existing ones.
-
The script will guide you through the file upload, handling overwriting, skipping, renaming, and generating shareable links.
- Authentication: Configures AWS CLI and logs in using AWS credentials.
- Region Selection: Prompts the user to select a region from the available list.
- Bucket Handling: Creates or uses an S3 bucket and lists existing buckets.
- File Handling: Checks for file existence, manages overwriting, skipping, renaming, and generates shareable links.