AWS Lambda Performance Optimizations

In this post we are going to see how you can optimize performance of AWS Lambda function. Although Lambda is a managed service by AWS and it automatically scales, based on shared responsibility model, the underlying service details will be managed by AWS but its client’s responsibility to correctly use the service. By using these optimizations you can lower your Lambda bill. Lets look at some of the Lambda Performance Optimizations Execution context Reuse When a Lambda function is invoked, AWS Lambda launches an execution context based on the configuration settings you provide like Memory, runtime, etc.

Write Your First AWS Lambda in Java

So far I have been writing Lambda function in Python for all my AWS projects . In Python its easy, just import boto3 module and starting coding. Things are bit different when you write Lambda handlers in Java. Lets explore and see how you can write a simple HelloWorld Lambda handler in java. I have planned couple of how-to projects that I am going to write in Java. Hence I thought to do HelloWorld post before we dive into complex handlers.

Automate Application Deployment Using Github Actions

GitHub Actions makes it easy to automate all your software workflows. You can Build, test, and deploy your code right from GitHub. In this post we will explore how you can use GitHub Actions to automate serverless application deployment on AWS. You can also use AWS’s own CI/CD services to achieve the same. But here we are going to keep our discussion limited to GitHub Actions. How to use GitHub Actions?

AWS Certified Developer - Associate Exam Tips (2020)

In June 2020, I passed the AWS Certified Solution Architect Exam after almost preparing for 5 months ( an hour or so everyday) and I was so pumped that I decided to take another AWS exam. I started preparing for the Developer Associate exam at the end of June and cleared by July end. Here is my badage: AWS Badge Developer associate is Developer focused and its bit different than the solution architect exam.

How to serve premium/private content on your site?

A lot of online companies (for example: Netflix, Udemy etc ) distribute contents over internet that is accessible only to the members of the site or who have subscribed or paid a premium. Today in this post we see how you can achieve this for your website using Amazon Web Services. We will see how you can securely serve private content to your users from AWS S3 bucket using S3 Presigned URLs

How to give access to AWS resources without creating 100s of IAM Users?

Scenario: Imagine you are a solution architect in a company with 100s of Sales employees and you are migrating from on premise to AWS Cloud. You want to use existing employee authentication system and you want to store files on S3 that employee uses in their day to day work. You don’t want to keep S3 bucket public, that will expose all files to everybody. You have 2 options: Create single role with S3 bucket access and login credentials for all of the employees.