The code I am trying to run as per the tutorials is:
import boto3
s3=boto3.resource('s3')
bucket_name="BucketMRaj"
try:
response=s3.create_bucket(Bucket=bucket_name, CreateBucketConfiguration={'LocationConstraint':'us-east-2'})
print(response)
except Exception as error:
print(error)
Please help!