Philipp Mayer
10/08/2023, 3:44 PMNote that there currently is no Fake implementation of the Dynamo adapter. You can use DynamoDB local instead.”Although there is a fake implementation - is it a leftover? 🙂
dave
10/08/2023, 3:48 PMPhilipp Mayer
10/08/2023, 3:50 PMdave
10/08/2023, 3:51 PMPhilipp Mayer
10/08/2023, 3:53 PMdave
10/08/2023, 4:22 PMPhilipp Mayer
10/08/2023, 4:24 PMdave
10/08/2023, 4:25 PMPhilipp Mayer
10/08/2023, 4:26 PMdave
10/08/2023, 4:27 PMPhilipp Mayer
10/08/2023, 4:29 PM{"timestamp":"2023-10-08T16:28:10.592291Z","event":"Outgoing","data":{"uri":"<http://dynamo-db/>","method":"POST","status":501,"latency":0,"xuriTemplate":""}}
could not create table
RemoteFailure(method=POST, uri=/, status=501 Not Implemented, message=No mapped host for: <http://dynamo-db/>)
{"timestamp":"2023-10-08T16:28:10.808905Z","event":"Outgoing","data":{"uri":"<http://dynamo-db/>","method":"POST","status":400,"latency":36,"xuriTemplate":""}}
I pushed some more debugging stuffdave
10/08/2023, 4:31 PMnetworkAccess.http = routes(
reverseProxyRouting(
env[DYNAMO_URI].authority to dynamoDb,
env[TELEGRAM_URI].authority to telegram,
env[RA_URI].authority to ra,
Uri.of("<http://pedro>").authority to ProdApp(env, events, networkAccess.debug()),
)
)
Philipp Mayer
10/08/2023, 4:32 PMdave
10/08/2023, 4:33 PMPhilipp Mayer
10/08/2023, 4:34 PMdave
10/08/2023, 4:35 PMUgh, this makes sense. I’m looking way too long on this already.
Philipp Mayer
10/08/2023, 4:36 PMAndrew O'Hara
10/09/2023, 6:27 PMdynamodb
and not dynamo-db
. You need to use the same host found in the service interface. For example:
private val internet = reverseProxy(
"dynamodb" to dynamo
)
And here's where you would find the host to use.
https://github.com/http4k/http4k-connect/blob/master/amazon/dynamodb/client/src/main/kotlin/org/http4k/connect/amazon/dynamodb/DynamoDb.kt#L15Philipp Mayer
10/10/2023, 7:26 AM