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
Category: Cloud & Serverless
oracle-free-tier-compute-instance-vps-install-debian-10-buster-image
Post moved to https://faxmodem.eu/blog/development/cloud-serverless/oracle-free-tier-compute-instance-vps-install-debian-image/
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
Environment variable undefined in GatsbyJS?
If you’re trying to use an environment variable in your GatsbyJS HTML code and it keeps being undefined once you build, this could be because most environment variables are prevented from being rendered e.g. so that your private API key is not revealed by accident. If your variable does have to end up in the… Continue reading Environment variable undefined in GatsbyJS?
Fixing ModuleNotFoundError for both ‘google’ and ‘googleapiclient’
Problem: ModuleNotFoundError: No module named ‘google’ Solution: pip install google pip install google-cloud pip install google-cloud-vision (Yes, pip install google-cloud-vision is important.) Problem: ModuleNotFoundError: No module named ‘googleapiclient’ Solution: pip install google-api-python-client
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
Github Actions missing
A quick solution to Github Actions not showing up when integrating Azure
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
Installing Debian on an Oracle Cloud Free Tier VPS
If you got a Free Tier VPS on Oracle Cloud and you want it to run Debian, you will not find it in pre-built OS images. Here’s how you create a custom OCI image based on Debian.