Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 911 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 911 Bytes

Google CIDR Lambda

Retrieves the public Google service Classless Inter-Domain Routing (CIDR) ranges and updates an AWS managed prefix list. This prefix list can then be used to create security group rules that allow services to access Google.

The source of the CIDR ranges are the following two JSON files:

The final list of CIDR ranges is the result of services - cloud CIDR ranges.

Deployment

  1. Create a Lambda function using the Docker image built from this directory.
  2. Create a managed prefix list that this Lambda function will update.
  3. Create a CloudWatch event rule that triggers the Lambda function once a day.

Credits

The code in the lambda is adapted from Google's Cloud CIDR tool.