Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save maskaravivek/e0b8196f850b491da3001bc2d042176e to your computer and use it in GitHub Desktop.
Save maskaravivek/e0b8196f850b491da3001bc2d042176e to your computer and use it in GitHub Desktop.
const s3 = require('./config');
const bucketName = 'my-unique-bucket-name';
s3.createBucket({ Bucket: bucketName }, (error, data) => {
if (error) {
console.error(error);
} else {
console.log(`Bucket ${bucketName} created successfully!`);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment