Book Image

DynamoDB Cookbook

By : Tanmay Deshpande
Book Image

DynamoDB Cookbook

By: Tanmay Deshpande

Overview of this book

Table of Contents (18 chapters)
DynamoDB Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Implementing the client-side encryption for the DynamoDB data


It's been quite a long time since Cloud has been in production, but some people still have concerns about the security it provides. Also, it's always good to have additional levels of security to make sure that the data is safe. In order to do so, in this recipe, we are going to see how to encrypt data before saving it in a DynamoDB table.

Getting ready

To perform this recipe, you should know how to use the AWS SDK for Java, especially its object persistence model. Refer to Chapter 5, Exploring Higher Level Programming Interfaces for DynamoDB, for more details.

How to do it…

To get started with this recipe, we need to create a maven project and add the following dependencies to it:

  1. Add dependencies to the AWS SDK for Java and the aws-dynamodb-encryption-java library:

    <dependency>
    <groupId>com.amazonaws</groupId>
      <artifactId>aws-java-sdk</artifactId>
      <version>1.9.34</version>
    </dependency...