In this post, I will show you how to create S3 bucket, how to put objects into the bucket, how to upload multiple objects in s3, how to download multiple objects, how to control access policy, and how to host a static website in S3. 1. How to create S3 Bucket using Python3 Boto3? Object : resource method: create_bucket important method parameters: ACL : private or public Bucket - name of the bucket name this should be unique for each bucket CreateBucketConfiguration - have the LocationConstrating that is region on which you want to host your s3 bucket. import boto3 s3_resource = boto3.resource('s3') bucket = s3_resource.create_bucket(ACL='private', Bucket='vybhava2023demo.com', CreateBucketConfiguration={ 'LocationConstrating': 'us-west-2' }) print("Successfully create bucket:", bucket) 2. How to put the objects into the S3 Bucket using Boto3 When you want to add fil...
Learn from the learners, learning is forever - Life is short it need Python programming !!!