Skip to content

Commit 46e6b6f

Browse files
committed
PHP-update s3 bucket names
Fix for https://taskei.amazon.dev/tasks/PHP-3162
1 parent f969ce8 commit 46e6b6f

17 files changed

+19
-19
lines changed

php/example_code/class_examples/CommandPool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
$s3Service = new S3Service($client, true);
3939

40-
$bucket = 'my-bucket-' . uniqid(); // This bucket will be deleted at the end of this example.
40+
$bucket = 'amzn-s3-demo-bucket-' . uniqid(); // This bucket will be deleted at the end of this example.
4141

4242
$client->createBucket([
4343
"Bucket" => $bucket,

php/example_code/cloudfront/CreateDistributionS3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function createS3Distribution($cloudFrontClient, $distribution)
5050
function createsTheS3Distribution()
5151
{
5252
$originName = 'my-unique-origin-name';
53-
$s3BucketURL = 'my-bucket-name.s3.amazonaws.com';
53+
$s3BucketURL = 'amzn-s3-demo-bucket.s3.amazonaws.com';
5454
$callerReference = 'my-unique-caller-reference';
5555
$comment = 'my-comment-about-this-distribution';
5656
$defaultCacheBehavior = [

php/example_code/cloudfront/old_tests/CreateDistributionS3Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testCreatesAnS3Distribution()
2424
require(__DIR__ . '/../CreateDistributionS3.php');
2525

2626
$originName = 'my-unique-origin-name';
27-
$s3BucketURL = 'my-bucket-name.s3.amazonaws.com';
27+
$s3BucketURL = 'amzn-s3-demo-bucket.s3.amazonaws.com';
2828
$callerReference = 'my-unique-caller-reference';
2929
$comment = 'my-comment-about-this-distribution';
3030
$defaultCacheBehavior = [

php/example_code/cloudfront/old_tests/DisableDistributionS3Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected function setUp(): void
8282
'Origins' => [
8383
'Items' => [
8484
[
85-
'DomainName' => 'my-bucket-name.s3.amazonaws.com',
85+
'DomainName' => 'amzn-s3-demo-bucket.s3.amazonaws.com',
8686
'Id' => 'my-unique-origin-name',
8787
'OriginPath' => '',
8888
'CustomHeaders' => [

php/example_code/cloudfront/old_tests/UpdateDistributionS3Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected function setUp(): void
8282
'Origins' => [
8383
'Items' => [
8484
[
85-
'DomainName' => 'my-bucket-name.s3.amazonaws.com',
85+
'DomainName' => 'amzn-s3-demo-bucket.s3.amazonaws.com',
8686
'Id' => 'my-unique-origin-name',
8787
'OriginPath' => '',
8888
'CustomHeaders' => [

php/example_code/cloudwatch/DescribeAlarmsForMetric.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function describeTheAlarmsForMetric()
7979
],
8080
[
8181
'Name' => 'BucketName',
82-
'Value' => 'my-bucket'
82+
'Value' => 'amzn-s3-demo-bucket'
8383
]
8484
];
8585

php/example_code/cloudwatch/GetMetricStatistics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function getTheMetricStatistics()
147147
],
148148
[
149149
'Name' => 'BucketName',
150-
'Value' => 'my-bucket'
150+
'Value' => 'amzn-s3-demo-bucket'
151151
]
152152
];
153153
$startTime = strtotime('-3 days');

php/example_code/cloudwatch/old_tests/DescribeAlarmsForMetricTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testDescribesAlarmsForAMetric()
3232
],
3333
[
3434
'Name' => 'BucketName',
35-
'Value' => 'my-bucket'
35+
'Value' => 'amzn-s3-demo-bucket'
3636
]
3737
];
3838

php/example_code/lambda/GettingStartedWithLambda.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function run()
5353
echo "Attached the AWSLambdaBasicExecutionRole to {$role['RoleName']}.\n";
5454

5555
echo "\nNow let's create an S3 bucket and upload our Lambda code there.\n";
56-
$bucketName = "test-example-bucket-$uniqid";
56+
$bucketName = "amzn-s3-demo-bucket-$uniqid";
5757
$s3client->createBucket([
5858
'Bucket' => $bucketName,
5959
]);

php/example_code/lambda/tests/LambdaTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testSingleActionCalls()
5353
}
5454
]
5555
}";
56-
$bucketName = "test-example-bucket-$uniqid";
56+
$bucketName = "amzn-s3-demo-bucket-$uniqid";
5757
$this->s3client->createBucket([
5858
'Bucket' => $bucketName,
5959
]);

0 commit comments

Comments
 (0)