How to copy objects from one S3 bucket to another

Viewed 186

I have found a solution for syncing S3 buckets data over link Copy objects between S3 buckets

aws s3 sync s3://DOC-EXAMPLE-BUCKET-SOURCE s3://DOC-EXAMPLE-BUCKET-TARGET

But I want to copy specific files from the production S3 bucket to the staging s3 bucket via the file paths that are stored in the production database. Any suggestion of how I can achieve that using Laravel aws-sdk-php, lambda function, or aws-cli?

0 Answers
Related