Version DynamoDB Staging / Production / Development

It seems that there is no way to create a database in Amazon DynamoDB with your name, you can only create tables.

But we would like to split the databases for Staging / Development / Production environments.

How did you resolve it? Created a new AWS account?

thanks

+4
source share
2 answers

I would recommend creating a separate DynamoDB account. This is useful for a number of reasons:

  • Make sure that test data does not leak into production (do not give out prod credentials to verify hosts)
  • The ability to take the costs of test infrastructure out of production
  • Inability to break prod functionality with test errors
  • Ensure that developers without privilege cannot see secure production data (if necessary).
+2
source

In addition to creating a new AWS account, you can use prefixes for Dynamo tables. For example, production-users , test-users , etc.

However, for development purposes, I would recommend using DynamoDB Local with the jcabi-dynamodb-maven-plugin . The plugin launches a local version of DynamoDB before your integration tests and immediately disables it. Much more convenient and stable than relying on a "test" table in DynamoDB.

+1
source

Source: https://habr.com/ru/post/1488757/


All Articles