Skip to content

Commit

Permalink
Merge pull request #1 from HubSpot/ssalinas-patch-1
Browse files Browse the repository at this point in the history
Additional region pattern for s3 urls
  • Loading branch information
ssalinas authored Dec 16, 2020
2 parents f945156 + 6fefdfc commit 11c4485
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/resty/aws.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ local function get_service_and_region(host)
local patterns = {
{'s3.amazonaws.com', 's3', 'us-east-1'},
{'s3-external-1.amazonaws.com', 's3', 'us-east-1'},
{'s3%.([a-z0-9-]+)%.amazonaws%.com', 's3', nil},
{'s3%-([a-z0-9-]+)%.amazonaws%.com', 's3', nil}
}

Expand Down

0 comments on commit 11c4485

Please sign in to comment.