Customizing Cognito verification emails with HTML using AWS Lambda
This has become very common to use AWS Cognito as an authentication system in modern days. Using Cognito, when a user signs up or gets an invitation from another user, he gets an email with password and verification codes. But the email is in simple plain text. But we can easily configure a lambda function that can customize and beautify this email according to our needs. To configure the lambda, first, we have to understand the...
A journey to AWS Lambda integration testing with Python, Localstack, and Terraform
To start with unit testing for AWS Lambda, we can just choose a testing framework and start writing our beautiful unit tests. For testing AWS services we also can use some mock tools like moto. But what about integration testing? A solution may be to deploy with the Continuous Deployment tool and run some test code against real AWS services. But there are some problems: It takes more time to deploy every timeRunning test code against AWS takes more timeIncreases the AWS bills So...
Automate python libraries deployment at AWS Lambda layer from Pipfile with Terraform
AWS Lambda, a part of Amazon Web Services (AWS) is a serverless computing service that works as FaaS (Function as a Service). A FaaS is a service which provides users to develop and manage application service without thinking about infrastructure. Terraform is an Infrastructure as Code (IaC) tool which is developed by Hasi Corp to manage resources of cloud services like AWS, Google Cloud, Azure, etc. It is open-source and developed by golang. It is always challenging to zip the codes and upload them...
Demystifying cron job through AWS lambda in Serverless
Some services like video upload to social media like Facebook, YouTube, etc via API need some time to process the request as it takes time to finish the processing of a video by Facebook or YouTube. At Craftsmen, for one of our customers we have a service API where users can send us requests with a video URL, and in which social media platform the video should be uploaded, our API will upload the video to...
Deploy a SPA in AWS with domain or sub-domain
Deploying Single Page Application (SPA) in Amazon Web Services (AWS) world is not that straight forward like the way SPA sounds. At Craftsmen we have been deploying SPAs in AWS cloud environment pretty frequently for our customers and thought that it’s worth sharing our practices with the world! Suppose you have a domain called www.example.com and you want to serve a SPA (built in React, Angular, VueJS etc) web app from AWS cloud environment. Then at a first glance you...
Using AWS Services from different regions using Serverless Architecture
AWS comes with a bunch of cool services and most of the time not all the services are available in all the regions. At Craftsmen, while providing premium R&D services to our customers across the globe we encountered situations like this where our customers want to have services in certain regions where not all the services are available but they would like to use those services. In this article, I shall discuss the solutions with appropriate...
- 1
- 2