Tag: CLI
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...
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...
Build and Push Docker image to Amazon ECR
Background
In this post I am going to share a bash script that I use to build a docker container image from a Dockerfile and...
Update Image Using Packer
Background
Recently I published a post to show how to remove old EC2 instances using a Lambda function. This in itself does not do much...
Query AWS CloudTrail Logs Using CLI
Background
AWS CloudTrail is an AWS service that helps you enable governance, compliance, and operational and risk auditing of your AWS account. Actions taken by...