News for hackers. Stuff that matters.
Re:Awsviz.dev simplifying AWS IAM policies by tenplusfive on Wednesday July 10, 2024 @03:51AM (#40924606)
I've recently stumbled upon the possibility to share a VPC and use one VPC with multiple accounts: https://docs.aws.amazon.com/whitepapers/latest/building-scal...

I'm honestly not sure if thats a great idea, but this might be a possible way to do one account per DB/backend/frontend in a somewhat sane way.

Re:Awsviz.dev simplifying AWS IAM policies by LilBytes on Wednesday July 10, 2024 @04:37AM (#40924894)
It's fine, but you're going to attract a lot of network costs bridging data between AWS accounts.

Generally I'd stick to accounts per environment, you'll be worrying about a lot more when you get to FAANG scale.

Re:Awsviz.dev simplifying AWS IAM policies by visualphoenix on Wednesday July 10, 2024 @07:49AM (#40925865)
Sharing a VPC between accounts with AWS RAM incurs no network costs between the accounts and greatly simplifies AWS networking. Additionally you can share and re-use security groups from the shared vpc across account boundaries.
Re:Awsviz.dev simplifying AWS IAM policies by LilBytes on Wednesday July 10, 2024 @09:06PM (#40932939)
Hey thank you! I didn't know that, I was still stuck in the thoughts of using Transit Gateways between accounts which of course attracts $$$.
Re:Awsviz.dev simplifying AWS IAM policies by lijok on Wednesday July 10, 2024 @07:17AM (#40925705)
It's a great idea if you know how manage it. This is current recommended practice for corporate. Single Network account that interconnects everything and dishes out subnets to other accounts for use exclusively by them.
Re:Awsviz.dev simplifying AWS IAM policies by shakiXBT on Wednesday July 10, 2024 @08:04AM (#40925973)
oh, that's cool, I didn't know that was possible.

That said, I still think it's overkill and doesn't bring any real benefit? Sure you're reducing the blast radius of a security breach, but are the overcomplications worth it? Also, you now have to manage multiple accounts with multiple policies and users / roles, won't that extra complexity actually increase the attack surface?

Re:Awsviz.dev simplifying AWS IAM policies by thedougd on Wednesday July 10, 2024 @08:28AM (#40926144)
I do this. Technically you share the subnets. It's a fantastic pattern and enables greater autonomy for application teams. They're given an AWS account per app environment (e.g. WidgetApp Test, WidgetApp Prod, etc) and are able to build their stuff and attach it to existing subnets without a care about 'how' it communicates with the Internet or the greater organization.