Skip to content

Commit 821b7d9

Browse files
author
Dan Isla
committed
Add support for us-gov-west-1 region
1 parent 377e7e0 commit 821b7d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/elasticsearch/cloud/aws/InternalAwsS3Service.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ private static String getEndpoint(String region) {
169169
return "s3-us-west-1.amazonaws.com";
170170
} else if ("us-west-2".equals(region)) {
171171
return "s3-us-west-2.amazonaws.com";
172-
} else if ("ap-southeast".equals(region)) {
172+
} else if ("us-gov-west-1".equals(region)) {
173+
return "s3-us-gov-west-1.amazonaws.com";
174+
}else if ("ap-southeast".equals(region)) {
173175
return "s3-ap-southeast-1.amazonaws.com";
174176
} else if ("ap-southeast-1".equals(region)) {
175177
return "s3-ap-southeast-1.amazonaws.com";

0 commit comments

Comments
 (0)