Tag: Lambda
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...
Serverless – Scale up ECS Service with Lambda and Cloudwatch Events
Background
When your service runs on an Auto Scale Group, it is very easy to add schedules to it to scale the service at a...
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...
AWS Lambda Layer for Python package requests
In my previous post, I made a layer for pymysql to access an RDS from Lambda. In this post, I will show how to...
Pass db credentials to Lambda using Parameter Store
If you are connecting to a RDS server from Lambda using native authentication method then you have to store user and password somewhere in...
AWS Lambda Layer example in python
Lambda Layers was one of the most exciting news out of AWS re:Invent 2018 for me. Using layers it is now possible to move runtime...