Monitor IP usage through custom lambda function
Opened this issue · 2 comments
dms1981 commented
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
- https://github.com/ministryofjustice/modernisation-platform-terraform-lambda-function/
- https://github.com/zoph-io/subnet-watcher
- https://pkg.go.dev/github.com/aws/aws-sdk-go-v2
Definition of Done
- Write lambda
- Implement lambda
- Observe results published to custom cloudwatch metric
SimonPPledger commented
David to split into 2 or 3 tickets