Everything about Web Development and Cloud Computing.
Connecting AWS Lambda with Amazon RDS using AWS CDK and Node.js
This blog post gives an overview of how to connect an AWS Lambda function to an RDS instance to perform database operations. We will explore how to connect Lambda to RDS over the Internet or VPC, and how to make RDS publicly accessible.
How to Use Axios to Handle SSL/TLS Certificate Verification Errors in Node.js
This article explains how to handle SSL/TLS certificate verification errors that occur when making HTTPS requests in Node.js using Axios. The article recommends passing a custom httpsAgent option with rejectUnauthorized set to false to disable SSL/TLS certificate verification. However, the article emphasizes the importance of enabling certificate verification in production environments to ensure data security.
How to Implement Retry with Exponential Backoff in Node.js
Retry with exponential backoff is a technique to handle network errors by retrying a failed request after waiting for an increasing amount of time between each retry attempt. In Node.js, you can implement retry with exponential backoff using the retry module or by building your own implementation. This technique is useful for dealing with unreliable networks or services that occasionally fail.
How to link a Cognito account with a Google account(source code full stack)
Recently, I worked on a project that required users to be able to sign in with their Google account and users to be able to link their Google account with their Cognito account. I found that there is not much information on the internet about how to do this. So I decided to write this article to share my experience. I will show you how to link a Cognito account with a Google account in the front end and back end.
Code anywhere. AWS Cloud9
Do you want to code anywhere? AWS Cloud9 is a great tool for developers who want to code anywhere. It's a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a browser. It comes with a powerful code editor, debugger, and terminal. You can create and switch between multiple Cloud9 environments that include a full-fledged Linux server, code editor, and terminal. You can also connect to your existing AWS resources from within the IDE.
AWS Lambda support Node.js 18 now.
Recently, AWS Lambda announced that it supports Node.js 18 and it is available in all AWS regions. This is a big news for Node.js developers. It means that we can use the latest version of Node.js in AWS Lambda. However, should we update the version of Node.js in the Lambda runtime? Let's find out.
AxiosError, Parse Error, Invalid header value char
Invalid header value char. Have you ever seen this error? I have, and it's taken me some hours to figure out what was going on. I hope this post will help you to avoid the same mistake I made.
Aurora Serverless V2 with AWS CDK
AWS Aurora Serverless is a fully managed, auto-scaling configuration of Aurora that automatically starts up, shuts down, and scales the compute resources based on your application's needs. In this article, we will learn how to create an Aurora Serverless V2 with AWS CDK.
Enable CORS in AWS API Gateway + Lambda proxy integration with AWS CDK
How to enable CORS in AWS API Gateway + Lambda proxy integration with AWS CDK in a few lines of code.
Add Google Adsense to Next.js, refreshed ads
How to add Google Adsense to Next.js, refreshed ads when the user navigates to a new page. In this tutorial, we will use the Next.js router to detect when the user navigates to a new page and then refresh the ads.
Subscribe to the newsletter