Hello everyone,
I have a problem that I do not understand. With node 18.13.0, I am not able to use Dynamodb locally.
I always get this error: “message”: “UnknownEndpoint: Inaccessible host: localhost' at port
8005’. This service may not be available in the `localhost’ region.”, “type”: 0
But with node 16 I have a problem. Here is all the information I can give you, I am on mac (m1) on Ventura 13.1
Here is my serverless.yml:
service: test
provider:
name: aws
plugins:
- serverless-plugin-typescript
- serverless-offline
- serverless-dynamodb-local
custom:
dynamodb:
stages:
- dev
start:
port: 8005
inMemory: true
migrate: true
serverless-offline:
httpPort: 3005
lambdaPort: 3015
Here is my connection:
var dynamoDbCreation = new AWS.DynamoDB({
region: 'localhost',
endpoint: ('http://localhost:8005’)
});
Can you help me?