menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Cloud News

>

Building a...
source image

Dev

4w

read

294

img
dot

Image Credit: Dev

Building a Cloud File Uploader with Bash (Phase 1 of Learn to Cloud)

  • This article explains how to build a file uploader script that automates file uploads from a local system to Amazon S3 using Bash.
  • The script starts by checking the right version of Bash and grabbing the AWS credentials from a local .env file.
  • The script also lets you specify multiple files for upload and create a folder in your S3 bucket, making things more organized.
  • The article's author has also added an ASCII art for fun and created a help menu to ensure the script is user-friendly.
  • The script uses the AWS CLI to upload multiple files and outputs messages with respective error codes if the upload fails.
  • Additionally, the script provides the option to create a folder in S3 for organized upload.
  • Implemented get ops functionality to parse provided flags and values from the command line.
  • This practical project is a straightforward way to get familiar with cloud concepts while working with AWS services and improve your Bash scripting skills.
  • Future plans for the project include adding a progress bar, file synchronization to check cloud files, and displaying shareable links.
  • The complete script is available on the author's Github profile.

Read Full Article

like

17 Likes

For uninterrupted reading, download the app