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
• 3,020 points

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, 2019 in AWS by Priyaj
• 57,700 points
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 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
• 57,700 points
+5 votes
13 answers

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

You can download the file from S3 ...READ MORE

answered Dec 7, 2018 in AWS by Jino
+6 votes
3 answers