Hi,
Our company has a single account that has both dev and production environments, I was wondering, is it good practice, if we both have a dev and prod database to put each into their own private subnet and also onto their own individual VPC?
Hi,
Our company has a single account that has both dev and production environments, I was wondering, is it good practice, if we both have a dev and prod database to put each into their own private subnet and also onto their own individual VPC?
Yes, you want to isolate your production from “everything else”. It may never happen, but you’ll be very unhappy later on if someone accidentally posts the production credentials to the development setup and dev scribbles all over your production database. If there is no network path between the environments, then this class of error simply can’t screw up production.
Depending on how big you want to go, a lot of organisations have separate AWS accounts just for production, or even just for production for one product. Check out AWS Organizations if that interests you.
It’s better practice than not doing it, but a proper multiaccount strategy is better than that.
Accounts are free*. Create two more in an organization and split your workloads now before it gets too complicated later. You have an opportunity to build in good management practices. Think about central management, governance and security like you have 50 or more. This will help you scale up as you grow your cloud infrastructure. I’m making no assumption on your company size, business type or expected growth but I can tell you that good management works as well for smaller footprints as it does large.
The current AWS suggested strategy is multi account with Control Tower. I’ve not implemented it yet but it seems like a solid strategy to me. I plan on implementing it once I get buy-in.
Multi accounts is so much better.
No,
Migrate all the dev workload to a new account, there is no additional fee for accounts.
create an organization, set the right policy for each account. and revoke all the permissions for everyone in the production account.
change the deployment method to gitops and grant gitops environment the permission to modify resources in the account.
Does this continuous deployment work across accounts?
So an account is something which has a payment method and allows aws to sue somebody? With organizations in real world this would be a group of companies where you can sue individual companies. Or when there is a supply chain across companies, you need multiple accounts. Otherwise IAM is as safe against hacking. You are not supposed to login with your account unless there is an emergency.
Echoing the other advice here. You need to think of an account as a fault container. You really don’t want someone deleting your prod database when they think they’re deleting a dev version. Another scenario that comes to mind is a rogue process on the dev account blasting past resource limits and preventing scaling events in prod. All around, it is a terrible idea to mix those things.
You really really should not use the same account for prod and dev..
I mean.. really crazy.. vpc’s do nothing to protect you. Mistakes on aws api’s dont care about vpc segregation…
That’s a bad idea and will lead to many confusions. Create different account and use AWS Organisation to connect them so you can switchrole between dev and prod from a single master user
We are in the process of moving from a single account with multiple vpc to different accounts. I would recommend you start now itself so it becomes easier when you scale. There are many advantages with multi account strategy.
Not good practice. You should separate production from other activities in the account level. My company builds a product for consistent infrastructure automation throughout CI/CD platforms, my guess is that we add even more isolation and RBAC mechanisms than you do on your own, and we still recommend separate accounts for production and pre-production. We do the same ourselves and this is what all cloud providers would tell you to do. You can then use something like our product (cloudshell colony) to help you deploy consistently from dev to prod and give self-service etc., but it doesn’t replace the account separation.
Just use two accounts. It’s easier to manage and separate the different systems if they are in different accounts, seriously.
If you use one account, you have to use SGs and NACLs to ensure that things can’t go wrong and then you are not sure that you haven’t missed a corner.
So.. welcome to 2020 and a multi account strategy.
What you are aiming for was ok, 3-4 years ago, but not today.
Edit: I have customers with hundreds of accounts..