Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

copy files from s3 to ec2 vice versa

# To Install AWS CLI
sudo apt install awscli

# To Set/Configure Access and S3 Bucket Region
aws configure
Enter AWS Access Key ID:
Enter AWS Secret Access Key:
Enter Default region name: ap-southeast-1
Default output format: json

# To List the S3 Bucket 
aws s3 ls s3://<bucket name>

ex. aws s3 ls s3://source-folder

# To copy the files from EC2 to S3
aws s3 cp <filename> s3://<bucket name> 

ex. aws s3 cp file.tar.gz s3://source-folder

# To copy the files from S3 to EC2
aws s3 cp s3://<S3BucketName> <Local filename/Directory>

ex. aws s3 cp s3://source-folder/file.zip /home/ubuntu
Comment

PREVIOUS NEXT
Code Example
Shell :: git log with date and author info 
Shell :: xrandr configure crtc 2 failed ubuntu 
Shell :: change git repository commmand 
Shell :: how to change port for xampp 
Shell :: Run shell script with typescript 
Shell :: long path windows 
Shell :: install hass.io docker raspberry pi 
Shell :: ffmpeg extract frames resize 
Shell :: create new users and add them in group in linux 
Shell :: git reset staged files 
Shell :: delete from transfer.sh 
Shell :: apache disable tls 1.0 
Shell :: docker nodejs 
Shell :: laravel start kit authentication 
Shell :: digitalocean connect via ssh 
Shell :: conda install dvc 
Shell :: Flutter plugin not installed; this adds Flutter specific functionality. 
Shell :: video trimmer ubuntu 
Shell :: how to merge a branch into another branch 
Shell :: linux alternatives to tree 
Shell :: disable swap kubernetes ansible 
Shell :: gitignore files that are already tracked 
Shell :: correct git commit message 
Shell :: gcc info linux 
Shell :: how to zip folder on linux 
Shell :: mkdir -p parameter 
Shell :: how to upgrade julia 
Shell :: run docker as user not root 
Shell :: How to Block Ports in UFW Ubuntu Firewall 
Shell :: copy file from server to local 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =