From https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLocation.html:
For requests made using AWS Signature Version 4 (SigV4), we recommend that you use HeadBucket to return the bucket Region instead of GetBucketLocation.
|
location, err := svc.GetBucketLocation(ctx, params) |
|
if err != nil { |
|
plugin.Logger(ctx).Error("aws_s3_bucket.getBucketLocation", "bucket_name", *bucket.Name, "clientRegion", clientRegion, "api_error", err) |
|
return nil, err |
|
} |
From https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLocation.html:
steampipe-plugin-aws/aws/table_aws_s3_bucket.go
Lines 338 to 342 in 6418b0b