enough-painter-7423
04/03/2023, 3:48 AMeu-west-3
aka Paris region which I've never used before, aws s3 --region eu-west-3 ls
can enumerate all my buckets from all AWS regions. This Python script does the same:
import logging
import pprint
import boto3
import boto3.session
boto3.set_stream_logger('', 0)
s = boto3.session.Session(region_name='eu-west-3')
s3 = s.client('s3')
pprint.pprint(s3.list_buckets()['Buckets'], width=200)
However when I ran GetBucket.Invoke(GetBucketInvokeArgs(Bucket="my-bucket"))
(I'm using .NET & AWS Classic provider) I got this error
Failed getting S3 bucket (my-bucket): BucketRegionError: incorrect region, the bucket is not in 'ap-northeast-1' region at endpoint '', bucket is in 'ap-southeast-1' region
For now, I'm going to set up a Provider
object for each cross-regional reference to an S3 bucket, as I believe that will unblock me. But I can't help but feel that this is an unnecessary chore. Did I overlook anything?little-cartoon-10569
04/03/2023, 4:19 AM