Skip to content

Commit

Permalink
Merge branch 'kgizzi-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
abutaha committed Mar 7, 2023
2 parents f2818cc + 4cd2187 commit d1ba5e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aws-es-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func (p *proxy) parseEndpoint() error {
for _, partition := range endpoints.DefaultPartitions() {
for region := range partition.Regions() {
awsEndpoints = append(awsEndpoints, fmt.Sprintf("%s.es.%s", region, partition.DNSSuffix()))
awsEndpoints = append(awsEndpoints, fmt.Sprintf("%s.aoss.%s", region, partition.DNSSuffix()))
}
}

Expand All @@ -186,7 +187,7 @@ func (p *proxy) parseEndpoint() error {
if isAWSEndpoint {
// Extract region and service from link. This should be save now
parts := strings.Split(link.Host, ".")
p.region, p.service = parts[1], "es"
p.region, p.service = parts[1], parts[2]
logrus.Debugln("AWS Region", p.region)
}
}
Expand Down

0 comments on commit d1ba5e8

Please sign in to comment.