Tech

Getting started with Chalice to create AWS Lambdas in Python – Step by Step Tutorial

If you're into serverless stuff, you already know what is AWS Lambda. But if you don't know, AWS Lambda is a serverless service provided by Amazon where you can create 'functions' and deploy them in AWS, which you can run without having any server instances (such as EC2). Hence the name serverless. You can then trigger these functions using a variety of built in triggers such as S3 events, CloudWatch rules, API Gateways, and much more. AWS Lambda supports only a handful of programming languages such as NodeJS, Java, Python, and others. If you're writing your Lambda function in Python, you can use Chalice to make life a bit easier. Using Chalice, you can write a Lambda function, test it locally, and even deploy the Lambda function to your development, test, or production environments. ...

Read More
Tech

How to automatically trigger AWS Lambda functions using CloudWatch

If you have AWS Lambda functions which need to be triggered periodically, like CRON jobs, there are many ways to achieve this. But I recently discovered a very easy and AWS-way of doing this, which makes life a lot easier. So, there are a lot of ways you can trigger Lambda functions periodically. One of the most common ways I've see people doing this is adding an API Gateway to the Lambda function, and then calling that API periodically as a CRON job from one of the machines in the setup. I actually thought this is how you're supposed do to that. Okay, let me make this clear. I'm not a DevOps guy. I just learn these things as and when the job requires me to. So the CloudWatch feature that I recently discovered is by no means a new feature introduced recently. It just so happens that I ...

Read More