Skip to content

Latest commit

 

History

History

S3_Bucket_Creator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

How do I create an S3 Bucket?

Before you can upload data to Amazon S3, you must create a bucket in one of the AWS Regions to store your data. After you create a bucket, you can upload an unlimited number of data objects to the bucket.

The AWS account that creates the bucket owns it. By default, you can create up to 100 buckets in each of your AWS accounts. If you need additional buckets, you can increase your account bucket quota to a maximum of 1,000 buckets by submitting a service quota increase. For information about how to increase your bucket quota, see AWS Service Quotas in the AWS General Reference.

To create a bucket using python

Step 1 : Install boto3 library

A low-level client representing Amazon Simple Storage Service (S3):

Step 2 :

The following operations are related to CreateBucket :

PutObject DeleteBucket

See also: Documentation

Examples

The following example creates a bucket. The request specifies an AWS region where to create the bucket.

import boto3

client = boto3.client('s3')

response = client.create_bucket( Bucket='examplebucket', CreateBucketConfiguration={ 'LocationConstraint': 'eu-west-1', } )