Created
July 11, 2024 16:42
-
-
Save Babatunde13/076a452faa6cbec0ab6f04a3e504f16f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
# This script will create a bucket in S3 and upload a file to it | |
aws s3 mb s3://bkoiki950assets | |
echo "Bucket created" | |
echo "THis is my first file in index" >> index.txt | |
echo "THis is another file in index1" >> index1.txt | |
echo "THis is another file in index2" >> index2.txt | |
aws s3 cp index.txt s3://bkoiki950assets | |
aws s3 cp index1.txt s3://bkoiki950assets | |
aws s3 cp index2.txt s3://bkoiki950assets | |
aws s3 sync . s3://bkoiki950assets # This will sync all files in the current directory to the bucket | |
echo "Files uploaded" | |
aws s3 ls s3://bkoiki950assets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment