From fe9af9ab5a26d03213ceb8f140b1df64270a6f50 Mon Sep 17 00:00:00 2001 From: David Deyo Date: Thu, 31 May 2018 11:20:40 -0700 Subject: [PATCH] Update sample.js Fix use of deprecated node-uuid module --- sample.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample.js b/sample.js index 5d947ff..651f4fa 100644 --- a/sample.js +++ b/sample.js @@ -16,13 +16,13 @@ // Load the SDK and UUID var AWS = require('aws-sdk'); -var uuid = require('node-uuid'); +var uuidv4 = require('uuid/v4'); // Create an S3 client var s3 = new AWS.S3(); // Create a bucket and upload something into it -var bucketName = 'node-sdk-sample-' + uuid.v4(); +var bucketName = 'node-sdk-sample-' + uuidv4(); var keyName = 'hello_world.txt'; s3.createBucket({Bucket: bucketName}, function() {