管理上DynamoDB开发/分期/生产?DynamoDB

2023-09-11 10:26:17 作者:三歲就很酷

我们已经开始使用DynamoDB,并希望为开发/分期/生产独立的环境。我们能不能​​想出一个自然的方式来做到这一点---我们只需要创建单独的AWS账户?还是我们使用相同的帐户,但增加了傻prefixes到我们的表(DEV-产品,分期-产品,刺 - 产品)?

We're starting to use DynamoDB, and want separate environments for dev/staging/production. We can't figure out a natural way to do this---do we just create separate AWS accounts? Or do we use the same account, but add silly prefixes to our tables ("dev-products", "staging-products", "prod-products")?

推荐答案

与任何亚马逊产品管理这个标准的方法是创建一个单独的账户,然后用统一的计费,这样它不复杂计费方面。我喜欢这样的事情是,你不要冒险通过不小心跑错命令,打破了生产code。显然,这不会帮助你,如果你登录到错误的实例,但它仍然可以帮助不少。

The standard way to manage this with any amazon products is to create separate accounts and then use consolidated billing so that it doesn't complicate the billing aspect. The thing i like about this is that you don't risk breaking the production code by accidentally running the wrong command. Obviously it doesn't help you if you're logged into the wrong instance but it still helps quite a bit.

其他用途多个帐户可以是管理权限和更好的测试。具有帐户分开有助于测试,因​​为你可以复制生产账户100%,并打开和关闭,当你需要测试新功能。我曾与有关此问题的亚马逊premium支持,他们说,这似乎是标准的做法对于规模较大的公司。一些规模较大的公司有多个帐户。在这里我的工作中,我们只是有3个,我觉得每一天更加有用。

Other uses for multiple accounts could be to manage permissions and better testing. Having the accounts separate helps testing because you can reproduce the production account 100% and turn it on and off when you need to test new features. I've talked with amazon premium support about this issue and they've said that this seems to be standard practice for the larger companies. Some of the larger companies have many accounts. At my work here we just have 3 and I find it more useful every day.