Posted On: Dec 18, 2023

Amazon DynamoDB local now supports table deletion protection and the ReturnValuesOnConditionCheckFailure parameter. With DynamoDB local, you can develop and test applications by running DynamoDB in your local development environment without incurring any costs. DynamoDB local does not require an internet connection, and it works with your existing DynamoDB API calls. 

DynamoDB local version 1.25.0 and version 2.2.0 offer the following features and improvements:

  • Support for the ReturnValuesOnConditionCheckFailure parameter. With this parameter enabled, DynamoDB error messages can include a copy of the item as it was during the write attempt in your DynamoDB local environment. This lets you easily test the condition error behavior and your response to failed conditional writes the same way as you would with the DynamoDB web service. To learn more about condition checks, see the corresponding API reference page.
  • Protect your tables in DynamoDB local from accidental deletion when performing table management operations. You can now enable the deletion protection property for each table to test the behavior. The default setting for the deletion protection property is disabled. To learn more about deletion protection, see Using deletion protection.

DynamoDB local is free to download and available for macOS, Linux, and Windows. Get started with the latest version by downloading it from “Deploying DynamoDB locally on your computer”. To learn more, see Setting Up DynamoDB Local (Downloadable Version).