Skip to content

Commit

Permalink
Change default region to us east 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharon Nam authored and Sharon Nam committed May 16, 2024
1 parent 696a807 commit 63e04f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/service/route53/service_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ func (p *servicePackage) NewConn(ctx context.Context, m map[string]any) (*route5
// Force "global" services to correct Regions.
switch m["partition"].(string) {
case endpoints_sdkv1.AwsPartitionID:
if aws_sdkv1.StringValue(config.Endpoint) == "" {
config.Region = aws_sdkv1.String(endpoints_sdkv1.UsWest2RegionID)
}
// https://docs.aws.amazon.com/general/latest/gr/r53.html Setting default to us-east-1
config.Region = aws_sdkv1.String(endpoints_sdkv1.UsEast1RegionID)
case endpoints_sdkv1.AwsCnPartitionID:
// The AWS Go SDK is missing endpoint information for Route 53 in the AWS China partition.
// This can likely be removed in the future.
Expand Down

0 comments on commit 63e04f9

Please sign in to comment.