The default is to run it as a local Java program.Īll CLI options are optional: -port -p Port to listen on. This starts the DynamoDB Local instance, either as a local Java program or, if the -docker flag is set,īy running it within a docker container.
Java local dynamodb aws credentials install#
Note: This is useful if the sls dynamodb install failed in between to completely remove and install a new copy of DynamoDB local. To remove the installed dynamodb local, run: If using docker, this step is not required.
Open a browser and go to the url to access the web shell for dynamodb local. Note: Read the detailed section for more information on advanced options and configurations. Make sure above command is executed before this. To stop DynamoDB, type Ctrl+C in the command prompt window). Start DynamoDB Local and migrate (DynamoDB will process incoming requests until you stop it. Install DynamoDB Local (unless using docker setup, see below)Īdd DynamoDB Resource definitions to your Serverless configuration, as defined here: Then in serverless.yml add following entry to the plugins array: serverless-dynamodb-local plugins: - serverless-dynamodb-local Using the Plugin Npm install -save serverless-dynamodb-local Start DynamoDB Local with all the parameters supported (e.g port, inMemory, sharedDb).Run DynamoDB Local as Java program on the local host or in docker container.