Deploying a Node.JS application to Azure Web App Service

If you deployed your Node.JS app to Azure and you can’t get it to run, a common gotcha is the port number your app is listening on. When troubleshooting, you may be reading that Azure allows incoming connections only to ports 80 and 443. So you make your app listen to 80 or 443, but… Continue reading Deploying a Node.JS application to Azure Web App Service

Sending SES complaints and bounces to SQS via SNS

Debugging Amazon SQS not receiving SES bounce and complaint notifications? I hear you. Navigating and figuring out tons of seemingly identical documentation articles written in the wordiest way feels impossible. In short, I got it to work by following this basic scenario: setting up an SNS topic; selecting that topic in Feedback notifications for a… Continue reading Sending SES complaints and bounces to SQS via SNS

Finding AWS region closest to your server with a shell script

For something more sophisticated and less manual, use ekalinin/awsping. The below script will ping every region (or a subset of regions) and output the latency. Here’s the full list of AWS regions as of November 2022: Africa (Cape Town): af-south-1 Asia Pacific (Hong Kong): ap-east-1 Asia Pacific (Tokyo): ap-northeast-1 Asia Pacific (Seoul): ap-northeast-2 Asia Pacific… Continue reading Finding AWS region closest to your server with a shell script

Bootstrapping a Node.js Lambda function having MySQL support

If you need your Node.js Lambda function to have support for any given extension, add that extension locally to have your local npm download the dependencies into node_modules, then zip the folder into an archive, and create a Lambda function from that archive. You can do it from a Linux VPS, or download the ready-to-use… Continue reading Bootstrapping a Node.js Lambda function having MySQL support

Connecting AWS API Gateway to SQS

An outline, leaving out the defaults and the obvious chores such as selecting the right region: 1. Create your SQS queue 2. Create a REST API, a resource and a method – Method Request: empty, no auth – Integration Request: – Type: AWS Service – AWS Service: Simple Queue Service (SQS) – AWS Subdomain: (empty)… Continue reading Connecting AWS API Gateway to SQS