Create a new S3 bucket or if you want to copy the objects to another existing bucket, you can use it.
Install and configure the AWS Command Line Interface (AWS CLI) with the below steps. a) curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip” -o “awscliv2.zip” b) unzip awscliv2.zip c) sudo ./aws/install
You need to have a IAM user to proceed further. If you do not have you can follow the below steps. a) Open the IAM console b) From the navigation menu, click “Users” c) Select your IAM user name d) Click User Actions, and then click Manage Access Keys. e) Click Create Access Key. f) Click Download Credentials, and store the keys in a secure location.
Configure the AWS CLI by running the following command aws configure
It will ask for Access key and Secret key. Enter your Access key and Secret key.
Press Enter to skip the default Region and default output options.
Copy the objects between the source and target buckets by running the following command using the AWS CLI. aws s3 sync s3://DOC-EXAMPLE-BUCKET-SOURCE s3://DOC-EXAMPLE-BUCKET-TARGET
Go to S3 and check the target bucket, objects will be transferred.