Hi, I don't see the aws-s3: prefix in you to endpoint. Can you double check it?
Willem Jiang Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Wed, Jan 3, 2018 at 10:06 AM, Yi Yan <y...@talend.com> wrote: > Hi, > > I want to move(copy+delete) some objects from one AWS S3 bucket to > another, so I created the configuration like below, but the source object > was not deleted after running. > > from("aws-s3:SOURCE_BUCKET_NAME?amazonS3Client=#s3_ > client&fileName=test1.txt&deleteAfterRead =true") > .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) > .setHeader("CamelAwsS3ContentLength", constant(5)) > .to("TARGET_BUCKET_NAME?amazonS3Client=#s3_client&includeBody=false); > > > Thanks, > Yi Yan > >