sudo apt install awscli
-
Create IAM user & have it ready
Access and Secrete key
-
Create
.aws
folder in your home directorycd /home/thirumal mkdir .aws
-
Create
credentials
file in.aws
foldervi credentials
-
Add the user name inside
[]
and mention default user as[default]
.[default] aws_access_key_id= aws_secret_access_key= region=ca-central-1 [Thirumal] aws_access_key_id= aws_secret_access_key= region=us-east-1 [Jessica] aws_access_key_id= aws_secret_access_key= region=ap-south-1
-
Usage of multiple profile.
aws syc s3://{bucketname}/{folderName}