Tag: Python
Lambda Function To Stop Long Running EC2 Instances
Background
While working in my personal AWS account, sometimes I forget to shut EC2 instances down. Most of these instances do not cost much to...
Site Monitoring Using A Lambda Function
Background
I use a site monitoring service, which allows me to monitor my site by running a check every 5 minutes. When the site is...
Set Retention For CloudWatch Logs Using A Lambda Function
In one of my earlier post, I demonstrated how one could set retention for CloudWatch Logs using CLI command that could be run from...
Lambda Function To Remove Old EC2 Instances
Background
The firm where I am working right now has a strong emphasis on security for infrastructure in the public cloud. One of the security...
ECS Container state changes
Amazon Elastic Container Service - ECS allows you to easily run and scale containerized applications on AWS. You can launch multiple containers in matter...
Setting DynamoDB TTL with Lambda Python
Background
I use a lot of EC2 Spot instances and for audit/debugging purposes I like to keep track of EC2 instance state changes. I had...