copy file from one bucket to other bucket using java aws sdk
<p>i used following  code to copy file from one bucket to other bucket</p>

<pre><code>AmazonS3 s3client = new AmazonS3Client(new ProfileCredentialsProvider());
s3client.copyObject(sourceBucketName, sourceKey, 
                    destinationBucketName, destinationKey);
</code></pre>

<p>but i alway get 
"com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: B6466D562B6988E2)"` as the respone what may be the reason for that</p>