QuestionQ60

VerifiedSecurity and Compliance

A company uses AWS Organizations, AWS Control Tower, AWS Config, and Terraform to manage its AWS accounts and resources. The company needs to ensure that users deploy only AWS Lambda functions that are connected to a VPC in member AWS accounts.

Which solution meets these requirements with the LEAST operational effort?

Explanation

An SCP with an explicit Deny for lambda:CreateFunction and lambda:UpdateFunctionConfiguration when the lambda:VpcIds condition key is absent prevents Lambda functions from being created or updated without VPC configuration in member accounts. The Lambda VPC condition keys are supported by both actions, and the IAM Null operator tests whether a condition key is absent. This applies to direct API and Terraform operations, unlike CloudFormation-hook proactive controls, and prevents noncompliance rather than merely detecting it.

Learn more

Community Discussion

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