Skip to content

Commit

Permalink
Use http protocol to connect to dynamodb local
Browse files Browse the repository at this point in the history
  • Loading branch information
Nymphium committed Mar 28, 2022
1 parent 4acdbcd commit ec483f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/endpoints.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ec483f2

Please sign in to comment.