You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was creating an S3 bucket but, Exception IllegalLocationConstrationException. By default S3 bucket was created in US-east-1 region.
To solve this Exception, I provided the location to the bucket ap-south-1 and s3 bucket created successfully.
Creating S3 bucket using Boto3
I was creating an S3 bucket but, Exception IllegalLocationConstrationException. By default S3 bucket was created in US-east-1 region.
To solve this Exception, I provided the location to the bucket ap-south-1 and s3 bucket created successfully.
Here is the code:
import boto3
client = boto3.client('s3')
response = client.create_bucket(
)
The text was updated successfully, but these errors were encountered: