Skip to content

Commit

Permalink
apply a quick hotfix for having main working properly (#32934)
Browse files Browse the repository at this point in the history
* apply a quick hotfix for having main working properly

* fix test
  • Loading branch information
Andrea Spacca committed Sep 1, 2022
1 parent d1aaef0 commit ee82bc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/libbeat/common/aws/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func EnrichAWSConfigWithEndpoint(endpoint string, serviceName string, regionName

beatsConfig.EndpointResolverWithOptions = awssdk.EndpointResolverWithOptionsFunc(
func(service, region string, options ...interface{}) (awssdk.Endpoint, error) {
return awssdk.Endpoint{URL: eurl}, nil
return awssdk.Endpoint{URL: eurl, SigningRegion: region}, nil
})
}
return beatsConfig
Expand Down
2 changes: 1 addition & 1 deletion x-pack/libbeat/common/aws/credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func TestEnrichAWSConfigWithEndpoint(t *testing.T) {

func getEndpointResolverWithOptionsFunc(e string) awssdk.EndpointResolverWithOptionsFunc {
return func(service, region string, options ...interface{}) (awssdk.Endpoint, error) {
return awssdk.Endpoint{URL: e}, nil
return awssdk.Endpoint{URL: e, SigningRegion: region}, nil
}
}

Expand Down

0 comments on commit ee82bc3

Please sign in to comment.