I\'v got user with all permissions.
{
\"Statement\": [
{
\"Effect\": \"Allow\",
\"Action\": \"*\",
\"Resource\": \"*\"
}
]
}
>
Popular answer was on point, but still had issues. Had to include ACL option.
$this->client->copyObject([
'Bucket' => $this->bucket,
// Added the bucket name to the copy source
'CopySource' => $this->bucket.'/'.$file,
'Key' => str_replace($source, $destination, $file),
'ACL' => 'public-read'
]);
ACL can be one of these value 'ACL' => 'private|public-read|public-read-write|authenticated-read|aws-exec-read|bucket-owner-read|bucket-owner-full-control',