From ec483f2c688fbf83e6fab72d4981c93fe7711734 Mon Sep 17 00:00:00 2001 From: Nymphium Date: Tue, 29 Mar 2022 00:38:50 +0900 Subject: [PATCH] Use http protocol to connect to dynamodb local --- lib/endpoints.ml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/endpoints.ml b/lib/endpoints.ml index 2ba20e0b2..cf1ba599d 100644 --- a/lib/endpoints.ml +++ b/lib/endpoints.ml @@ -1923,5 +1923,7 @@ let endpoint_of svc_name region = let url_of svc_name region = match endpoint_of svc_name region with + (* for dynamodb-local *) + | Some "localhost:8000" when String.ends_with ~suffix:"dynamodb" svc_name -> Some "http://localhost:8000" | Some var -> Some ("https://" ^ var) | None -> None