Skip to content

Commit 86a25f5

Browse files
Added : Documentation
1 parent dffc7bb commit 86a25f5

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

Aws/Readme.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# How do I create an S3 Bucket?
2+
3+
Before you can upload data to Amazon S3, you must create a bucket in one of the AWS Regions to store your data.
4+
After you create a bucket, you can upload an unlimited number of data objects to the bucket.
5+
6+
The AWS account that creates the bucket owns it. By default, you can create up to 100 buckets in each of your AWS accounts.
7+
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.
8+
For information about how to increase your bucket quota, see AWS Service Quotas in the AWS General Reference.
9+
10+
## To create a bucket using python
11+
12+
Step 1 : Install boto3 library
13+
14+
A low-level client representing Amazon Simple Storage Service (S3):
15+
16+
Step 2 :
17+
18+
The following operations are related to CreateBucket :
19+
20+
PutObject
21+
DeleteBucket
22+
23+
See also: [Documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html)
24+
25+
Examples
26+
27+
The following example creates a bucket. The request specifies an AWS region where to create the bucket.
28+
29+
`import boto3`
30+
31+
`client = boto3.client('s3')`
32+
33+
`response = client.create_bucket(
34+
Bucket='examplebucket',
35+
CreateBucketConfiguration={
36+
'LocationConstraint': 'eu-west-1',
37+
}
38+
)`
39+
40+

0 commit comments

Comments
 (0)