Monday, July 11, 2022

boto: s3 bucket region

 

import boto3
client = boto3.client('s3')
bucket_name="projectn-rpm-775902114032"
response = client.get_bucket_location(Bucket=bucket_name)
print(response['LocationConstraint'])

No comments:

Post a Comment