1 Answer
- Newest
- Most votes
- Most comments
0
You can create an S3 with the following code.
Cors is not set in this code.
import boto3
AWS_REGION ="ap-northeast-1"
client = boto3.client('s3',region_name=AWS_REGION)
bucket_name = "bucket_name"
response = client.create_bucket(Bucket=bucket_name,
CreateBucketConfiguration={'LocationConstraint': AWS_REGION})
Relevant content
- asked 2 years ago
- asked 5 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago