Control: 5 VPC Lambda functions should operate in multiple Availability Zones
Description
This control checks if Lambda has more than one availability zone associated. The rule fails if only one availability zone is associated with Lambda.
Deploying resources across multiple Availability Zones is an AWS best practice to ensure high availability within your architecture. Availability is a core pillar in the confidentiality, integrity, and availability triad security model. All Lambda functions should have a multi-Availability Zone deployment to ensure that a single zone of failure does not cause a total disruption of operations.
Remediation
To deploy a Lambda function in multiple Availability Zones through console:
- Open the AWS Lambda console
- From the
Functions
page on the Lambda console choose a function. - Choose
Configuration
and then choose VPC. - Choose
Edit
. - If the function was not originally connected to a VPC, select a VPC from the dropdown menu. If the function was not originally connected to a VPC, choose at least one security group to attach to the function.
- Choose
Save
.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.foundational_security_lambda_5
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.foundational_security_lambda_5 --share
SQL
This control uses a named query:
lambda_function_multiple_az_configured