fix: treat any url ending with amazonaws.com or amazonaws.com.cn as Amazon hosted

Signed-off-by: Travis O'Neal <wtravisoneal@gmail.com>
This commit is contained in:
Travis O'Neal
2026-03-26 22:09:15 -04:00
parent 66a75bd7d5
commit 6e2aaabdf3
3 changed files with 58 additions and 1 deletions
@@ -0,0 +1,5 @@
---
'@backstage/backend-defaults': patch
---
Fixed `AwsS3UrlReader` failing to read files from S3 buckets configured with custom endpoint hosts. When an integration was configured with a specific endpoint like `https://bucket-1.s3.eu-central-1.amazonaws.com`, the URL parser incorrectly fell through to the non-AWS code path, always defaulting the region to `us-east-1` instead of extracting it from the hostname.