From c8db73887ddf1293b4c4b90f26065d24ee0f53a5 Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Wed, 6 Oct 2021 09:58:04 +0200 Subject: [PATCH] Use s3.NormalizeBucketLocation on GetBucketLocationResponse.GetBucketLocationResponse (#28257) --- x-pack/filebeat/input/awss3/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/filebeat/input/awss3/input.go b/x-pack/filebeat/input/awss3/input.go index 545c24db322..9cdd20d8ca1 100644 --- a/x-pack/filebeat/input/awss3/input.go +++ b/x-pack/filebeat/input/awss3/input.go @@ -269,5 +269,5 @@ func getRegionForBucketARN(ctx context.Context, s3Client *s3.Client, bucketARN s return "", err } - return string(resp.LocationConstraint), nil + return string(s3.NormalizeBucketLocation(resp.LocationConstraint)), nil }