DynamoDB Staging/Production/Development versions

邮差的信 提交于 2019-12-05 18:01:21

I would recommend creating a separate DynamoDB account. It's good for a whole number of reasons:

  • Assurance that test data isn't leaking into production (don't give prod credentials to test hosts)
  • Ability to break out spending on test infrastructure from production
  • Inability to break prod functionality with test bugs
  • Guarantee that developers without priviledge can't see secure production data (if necessary).

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

However, for development purposes I'd recommend to use DynamoDB Local with jcabi-dynamodb-maven-plugin. The plugin starts a local version of DynamoDB before your integration tests and shuts it down right after. Much more convenient and stable than relying on a "test" table in DynamoDB.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!