I am looking to automate the process of removing an IP from an IP set after a specific amount of time. I managed to get the logs from Amazon CloudTrail after updating the IP set in CloudWatch, but I'm not sure how to set an expiration date for the IP address and configure a lambda to read the logs and then automatically remove the IP from the IP set based on the date.
↧