Skip to content

Commit 56cc81e

Browse files
committed
Changes for using Google Cloud Storage instead of Amazon S3
1 parent f39b927 commit 56cc81e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

vendor/aws/Aws/Common/Client/ClientBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ private function handleRegion(Collection $config)
446446
'A region is required when using ' . $description->getData('serviceFullName')
447447
);
448448
} elseif ($global && !$region) {
449-
$config[Options::REGION] = 'us-east-1';
449+
$config[Options::REGION] = 'global';
450450
}
451451
}
452452

vendor/aws/Aws/Common/Resources/public-endpoints.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
'us-east-1/s3' => array(
5555
'endpoint' => 's3.amazonaws.com'
5656
),
57+
'global/s3' => array(
58+
'endpoint' => 'storage.googleapis.com'
59+
),
5760
'us-west-1/s3' => array(
5861
'endpoint' => 's3-{region}.amazonaws.com'
5962
),

vendor/aws/Aws/S3/Resources/s3-2006-03-01.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@
2121
'serviceAbbreviation' => 'Amazon S3',
2222
'serviceType' => 'rest-xml',
2323
'timestampFormat' => 'rfc822',
24-
'globalEndpoint' => 's3.amazonaws.com',
24+
'globalEndpoint' => 'storage.googleapis.com',
2525
'signatureVersion' => 's3',
2626
'namespace' => 'S3',
2727
'regions' => array(
28+
'global' => array(
29+
'http' => true,
30+
'https' => true,
31+
'hostname' => 'storage.googleapis.com',
32+
),
2833
'us-east-1' => array(
2934
'http' => true,
3035
'https' => true,

0 commit comments

Comments
 (0)