Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor endpoint resolver for AWS services #32921

Merged
merged 11 commits into from Sep 8, 2022
2 changes: 1 addition & 1 deletion CHANGELOG.next.asciidoc
Expand Up @@ -11,7 +11,7 @@ https://github.com/elastic/beats/compare/v8.2.0\...main[Check the HEAD diff]
*Affecting all Beats*

- Fix namespacing on self-monitoring {pull}32336[32336]

- Fix SigningRegion not being used in AWS credentials {pull}32921[32921] {issue}32888[32888]

*Auditbeat*

Expand Down
2 changes: 1 addition & 1 deletion x-pack/libbeat/common/aws/credentials.go
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
kaiyan-sheng marked this conversation as resolved.
Show resolved Hide resolved
})
}
return beatsConfig
Expand Down