Join GitHub today
Are you sure you are using the correct region for this bucket? #1410
<?php require 'vendor/autoload.php'; $sdk = new Aws\Sdk([ 'version' => 'latest', 'region' => 'eu-west-1', 'debug' => true, 'credentials' => [ 'key' => 'x', 'secret' => 'x' ] ]); $s3 = $sdk->createS3(); $result = $s3->getObject([ 'Bucket' => 'my-bucket', 'Key' => 'hello.txt', ]); print_r($result);
When I click "hello.txt" from the console it shows the (presumable) correct URL of
First time using AWS so I may have missed something obvious....?
What URL do you receive if you force path style endpoints?
This is intended as an investigatory step, not as a full solution.