ministryofjustice / modernisation-platform

A place for the core work of the Modernisation Platform • This repository is defined and managed in Terraform
https://user-guide.modernisation-platform.service.justice.gov.uk
MIT License
681 stars 290 forks source link

Monitor IP usage through custom lambda function #8334

Open dms1981 opened 1 month ago

dms1981 commented 1 month ago

User Story

As a Modernisation Platform Engineer I want to implement a Lambda function that monitors IP address use So that I can send alerts

Value / Purpose

Originally investigated through #8024 , no AWS-native solutions were appropriate. The closest we could get would be to monitor the number of NAU units in use in a VPC, but as different resources consume different quantities of NAU units this would not easy map across to free IP address space.

A lambda function can publish metrics to CloudWatch which we can then use to trigger alarms and from there notifications.

Useful Contacts

No response

Additional Information

Definition of Done

SimonPPledger commented 3 weeks ago

David to split into 2 or 3 tickets

dms1981 commented 3 weeks ago

Story split done! Updated this issue and raised #8436.