Is there a way to replicate from one S3 source bucket to destination bucket with prefix in the destination bucket? I see the option to filter the prefix in the source bucket, but not the destination. Basically, trying to do what Sync/cp would do.
e.g.
aws s3 sync s3://<source-bucket>/prefix1/ s3://<destination-bucket>/prefix2/
I came across your question after researching this myself today. As John commented, no, it's not possible.
From the ReplicationRule API documentation page, you can see that you have to specify a Destination. From the Destination API page, you can see that you are only able to specify a bucket ARN, and cannot specify a destination prefix.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With