How can I create a S3 bucket using Python?

0 votes
I want to create a S3 bucket using Python. How can I do it?
Nov 30, 2018 in AWS by Nitesh
• 2,870 points
62 views

1 answer to this question.

0 votes
You can use the boto3 library for accessing AWS using Python.

You can use the followin code:

import boto3
s3_resource = boto3.resource('s3')
s3_resource.create_bucket(Bucket= 'bucket_name')
answered Nov 30, 2018 by Aniket

Related Questions In AWS

0 votes
1 answer

How to create a S3 bucket using AWS CLI?

You can use the following command:- C:\Users\priyj_kumar>aws s3api ...READ MORE

answered Feb 15 in AWS by Priyaj
• 56,160 points
98 views
0 votes
1 answer

How do I create folder under an Amazon S3 bucket through PHP API?

Of Course, it is possible to create ...READ MORE

answered Apr 24, 2018 in AWS by anonymous
1,933 views
+1 vote
2 answers
0 votes
1 answer

how to access AWS S3 from Lambda in VPC

With boto3, the S3 urls are virtual by default, ...READ MORE

answered Sep 28, 2018 in AWS by Priyaj
• 56,160 points
1,209 views
+1 vote
11 answers

Python AWS Boto3: How do i read files from S3 Bucket?

All of the answers are kind of ...READ MORE

answered Mar 30 in AWS by awsdbaexpert
• 200 points
21,664 views
+5 votes
3 answers