I'm not able to make url Presigned to my subdomain pointed to my bucket,
URL AMAZON - /mybucket/logo.jpg
OR
MY SUBDOMAIN - / logo.jpg
Works correctly
But when file is private, I need to generate permission, so it would look like this, but when I put the access key in the subdomain it does not work.
URL ORIGINAL AMAZON
SUBDOMAIN + KEY, DOES NOT WORK
my php code
$cmd = $client->getCommand('GetObject', [
'Bucket' => 'teste.darpine.com',
'Key' => 'cover.jpg'
]);
$request = $client->createPresignedRequest($cmd, '+10 hours');
echo $presignedUrl = (string) $request->getUri();
Someone please introduce me a light.