QuestionQ8

VerifiedNetwork Security, Compliance, and Governance

A company has AWS accounts within an AWS Organizations organization. It has implemented Amazon VPC IP Address Manager (IPAM) in its networking AWS account and uses AWS Resource Access Manager (AWS RAM) to share IPAM pools with the other AWS accounts. The company created a top-level pool with the CIDR block 10.0.0.0/8. Within that top-level pool, it created an IPAM pool for each AWS account.

A network engineer must implement a solution that ensures users in each AWS account cannot create new VPCs. The solution must also stop users from associating a CIDR block with an existing VPC unless that CIDR block comes from the IPAM pool for that account.

Which solution meets these requirements?

Explanation

A service control policy (SCP) can enforce a preventive deny on ec2:CreateVpc and ec2:AssociateVpcCidrBlock. Using the ec2:Ipv4IpamPoolId condition key with a deny condition that rejects any pool ID other than the account's assigned IPAM pool requires VPC CIDR allocation from that pool before either operation can succeed. AWS documents this SCP pattern for requiring a specific IPAM pool for VPC creation and CIDR association.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!