Skip to content

Commit 668a66d

Browse files
committed
Update examples to use reserved s3 bucket names, instead of placeholder bucket names.
1 parent bded041 commit 668a66d

File tree

14 files changed

+25
-25
lines changed

14 files changed

+25
-25
lines changed

applications/feedback_sentiment_analyzer/SPECIFICATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ For example:
201201

202202
```json
203203
{
204-
"bucket": "DOC-EXAMPLE-BUCKET",
204+
"bucket": "amzn-s3-demo-bucket",
205205
"region": "us-east-1",
206206
"object": "obj/ect.png"
207207
}
@@ -295,7 +295,7 @@ For example:
295295

296296
```json
297297
{
298-
"bucket": "DOC-EXAMPLE-BUCKET",
298+
"bucket": "amzn-s3-demo-bucket",
299299
"translated_text": "THIS HOTEL WAS GREAT",
300300
"region": "us-east-1",
301301
"object": "comment.png"

cpp/example_code/iam/tests/mock_input/ListBuckets.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<Buckets>
33
<Bucket>
44
<CreationDate>2019-12-11T23:32:47+00:00</CreationDate>
5-
<String>DOC-EXAMPLE-BUCKET</String>
5+
<String>amzn-s3-demo-bucket</String>
66
</Bucket>
77
<Bucket>
88
<CreationDate>2019-11-10T23:32:13+00:00</CreationDate>
9-
<String>DOC-EXAMPLE-BUCKET2</String>
9+
<String>amzn-s3-demo-bucket2</String>
1010
</Bucket>
1111
</Buckets>
1212
<Owner>

dotnetv3/EC2/VirtualPrivateCloudExamples/CreateVPCTests/testsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"BucketName": "DOC-EXAMPLE-BUCKET1",
2+
"BucketName": "amzn-s3-demo-bucket1",
33
"VpcId": "vpc-1a2b3c4d",
44
"SubnetId": "subnet-012345678912345606",
55
"SecurityGroupId": "sg-012345678912345606",

dotnetv3/EC2/VirtualPrivateCloudExamples/CreateVPCforS3Example/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"BucketName": "DOC-EXAMPLE-BUCKET1",
2+
"BucketName": "amzn-s3-demo-bucket1",
33
"VpcId": "vpc-1a2b3c4d",
44
"SubnetId": "subnet-012345678912345606",
55
"SecurityGroupId": "sg-012345678912345606",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"BucketName": "DOC-EXAMPLE-SOURCE-BUCKET",
3-
"LogBucketName": "DOC-EXAMPLE-DESTINATION-BUCKET",
2+
"BucketName": "amzn-s3-demo-source-bucket",
3+
"LogBucketName": "amzn-s3-demo-destination-bucket",
44
"LogObjectKeyPrefix": "access-logs/",
55
"AccountId": "111122223333"
66
}

dotnetv3/Transcribe/Actions/ActionExamples.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public static ActionExamples CreateInstance()
3232
// Set this value to the Amazon S3 location of a media file.
3333
// A sample media file is provided in the media folder of this solution.
3434
private static readonly string transcriptionMediaLocation =
35-
"https://DOC-EXAMPLE-BUCKET1.s3.amazonaws.com/Jabberwocky.mp3";
35+
"https://amzn-s3-demo-bucket1.s3.amazonaws.com/Jabberwocky.mp3";
3636
// Set this value to an Amazon S3 bucket name where the output can be stored.
37-
private static readonly string transcriptionMediaOutputLocation = "DOC-EXAMPLE-BUCKET2";
37+
private static readonly string transcriptionMediaOutputLocation = "amzn-s3-demo-bucket2";
3838
private static readonly string customVocabularyName = "Example-jabber-vocabulary";
3939

4040
static async Task Main(string[] args)
@@ -325,4 +325,4 @@ public static async Task CleanupMedicalTranscription(string medicalTranscription
325325

326326
Console.WriteLine(sepBar);
327327
}
328-
}
328+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"transcriptionMediaLocation": "DOC-EXAMPLE-BUCKET",
2+
"transcriptionMediaLocation": "amzn-s3-demo-bucket",
33
"transcriptionJobName": "testTranscriptionJobName",
4-
"outputLocation": "DOC-EXAMPLE-BUCKET2",
4+
"outputLocation": "amzn-s3-demo-bucket2",
55
"medicalTranscriptionJobName": "testMedicalTranscriptionJobName",
66
"customVocabularyName": "example_vocabulary_name"
77
}

dotnetv3/Translate/BatchTranslateExample/BatchTranslate.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public static async Task Main()
2323

2424
// Set this variable to an S3 bucket location with a folder."
2525
// Input files must be in a folder and not at the bucket root."
26-
var s3InputUri = "s3://DOC-EXAMPLE-BUCKET1/FOLDER/";
27-
var s3OutputUri = "s3://DOC-EXAMPLE-BUCKET2/";
26+
var s3InputUri = "s3://amzn-s3-demo-bucket1/FOLDER/";
27+
var s3OutputUri = "s3://amzn-s3-demo-bucket2/";
2828

2929
// This role must have permissions to read the source bucket and to read and
3030
// write to the destination bucket where the translated text will be stored.
@@ -78,4 +78,4 @@ public static async Task<StartTextTranslationJobResponse> StartTextTranslationAs
7878
}
7979

8080
// snippet-end:[Translate.dotnetv3.BatchTranslateExample]
81-
}
81+
}

dotnetv3/Translate/TranslateTextExample/TranslateText.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static async Task Main()
3636

3737
// The Amazon Simple Storage Service (Amazon S3) bucket where the
3838
// source text file is stored.
39-
string srcBucket = "DOC-EXAMPLE-BUCKET";
39+
string srcBucket = "amzn-s3-demo-bucket";
4040
string srcTextFile = "source.txt";
4141

4242
var srcText = await GetSourceTextAsync(srcBucket, srcTextFile);
@@ -112,4 +112,4 @@ public static void ShowText(string srcText, string destText)
112112
}
113113

114114
// snippet-end:[Translate.dotnetv3.TranslateTextExample]
115-
}
115+
}

dotnetv3/cross-service/S3ObjectLambdaFunction/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Refer to [Create an S3 bucket](https://docs.aws.amazon.com/AmazonS3/latest/userg
2424
Use CLI
2525

2626
```cmd
27-
aws s3api create-bucket --bucket DOC-EXAMPLE-BUCKET --region us-east-1
27+
aws s3api create-bucket --bucket amzn-s3-demo-bucket --region us-east-1
2828
```
2929

3030
## Upload a file to the S3 bucket
@@ -46,7 +46,7 @@ or
4646
Use CLI
4747

4848
```cmd
49-
aws s3 cp tutorial.txt s3://DOC-EXAMPLE-BUCKET
49+
aws s3 cp tutorial.txt s3://amzn-s3-demo-bucket
5050
```
5151

5252
## Create an S3 access point
@@ -58,7 +58,7 @@ or
5858
Use CLI
5959

6060
```cmd
61-
aws s3control create-access-point --bucket DOC-EXAMPLE-BUCKET --name DOC-EXAMPLE-BUCKET-ACCESSPOINT --account-id 111122223333
61+
aws s3control create-access-point --bucket amzn-s3-demo-bucket --name amzn-s3-demo-bucket-ACCESSPOINT --account-id 111122223333
6262
```
6363

6464

0 commit comments

Comments
 (0)