lambda function for aws that checks securyt groups from time to time and notifies if any changes are found. It uses S3 Bucket to keep previous state information
- Install package DeepDiff into ./lambda folder
pip install -r requirements.txt -t ./lambda
-
Install terraform
-
Create terraform.tfvars file with following variables:
regions = "us-west-2, us-east-1"
bucket_name = "yourbuckername"
mail_to = "[email protected]"
mail_from = "[email protected]"
Script uses SES service to send emails, so mail address should be validated.
or define them in terraform in any other way
-
Provide AWS credentials for terraform (see details here)
-
Run
terraform apply