Skip to content

Automatically Updated Security Group with Route53 Health Check Cidr Ranges

Notifications You must be signed in to change notification settings

mike-mosher/Project-Security-Group-R53-HealthChecks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automatically Updated Security Group with Route53 Healthcheck CIDR Ranges


Description

Serverless Framework project that will create a Lambda function and a security group. The lambda function is triggered by updates to the AWS ip-range.json file that contains all AWS public endpoint CIDR ranges.

The Lambda function will retrieve this file whenever it is updated by AWS, filter the results to contain only CIDR ranges for Route53 HealthChecks, and then update the security group with ingress rules for these CIDR ranges.

The purpose of the project is to provide an automatically updated security group that you can use on any resource that will have Route53 healthchecks ran against it.


Requirements


Installation

Git Clone:

git clone Project-Security-Group-R53-HealthChecks.git
cd Project-Security-Group-R53-HealthChecks

Serverless Framework Installation:

npm install -g serverless

Install Serverless Plugin:

sls plugin install -n serverless-python-requirements

Deploy to AWS:

sls deploy