Showing posts with label AWS S3. Show all posts
Showing posts with label AWS S3. Show all posts

Pull files from the AWS S3 to local folder

  Follow the below steps to pull files from the AWS S3 bucket to the local folder

Step 1: Configure AWS CLI on local machine using the below command:

$ aws configure AWS Access Key ID [None]: AWS Secret Access Key [None]: Default region name [None]: us-west-2 Default output format [None]: json

verify the AWS CLI profile

$ cat ~/.aws/credentials $ cat aws configure $ aws configure list

 

Step 2: Use the below command to copy the S3 bucket folder to the local folder [--recursive optional]

aws s3 cp --recursive s3://<bucket>/<folder> <local_folder>

Ex :

aws s3 cp --recursive s3://mobile-build-apk mobile-build-apk

 

Step 3: Verify the files on local

tree mobile-build-apk

 

Thanks!