Analyze Apache Logs Using Athena
I usually use Linux utilities like grep and awk to analyze requests coming to my blog server. These utilities provide a good view into...
Start EC2 and set DNS in CloudFlare using Lambda
In my previous posts, I showed two ways to set DNS for an EC2 server that does not have an Elastic IP attached to...
Block a user agent using Cloudflare rule
A while ago I published a post showing how to start a script on boot using systemd. In the example I used a simple...
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...
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...
ss command to monitor network connections on Linux
netstat was one of the first commands I used on a Linux server to monitor network connections between servers. However, on a busy server...