Skip to content

Commit

Permalink
Explicit about bucket name uniqueness
Browse files Browse the repository at this point in the history
It's easy to miss that line that myBucket needs to be unique-- provide whitespace & IMPORTANT to call it out

These docs need a unique S3 bucket name comment: https://aws.amazon.com/sdk-for-node-js/
  • Loading branch information
valgaze committed Jul 27, 2016
1 parent f084bb0 commit 53545c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc-src/guide/node-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ var AWS = require('aws-sdk');
AWS.config.region = 'us-west-2';

// Create a bucket using bound parameters and put something in it.
// Make sure to change the bucket name from "myBucket" to something unique.

var s3bucket = new AWS.S3({params: {Bucket: 'myBucket'}});

// IMPORTANT: Make sure to change the bucket name from "myBucket" above to something unique.

s3bucket.createBucket(function() {
var params = {Key: 'myKey', Body: 'Hello!'};
s3bucket.upload(params, function(err, data) {
Expand Down

0 comments on commit 53545c7

Please sign in to comment.