Quickly fix botocore.exceptions.noregionerror: you must specify a region.

Quickly diagnose and fix the botocore.exceptions.noregionerror: you must specify a region error. The fix is you must specify a region. The quickest fix is to open your ~/.aws/config and add region=us-east-1 to the [default] profile. There are more details and several other ways to specify a region at the bottom of this article in the How To Fix section. Here is how your config file should look. This will resolve botocore....

March 10, 2022 · 3 min · chart

AWS SAM in a Docker Container

If you’ve worked on even one Lambda function then you know that development without local testing can be slow. In this article we will go over using AWS SAM to startup an API on port 3000 with API Gateway and Lambda locally inside of a docker container nested inside another Docker container running AWS SAM for portability, ease of use, and easier integration into larger products / end-to-end suites. If this sounds useful to you keep on reading....

February 23, 2022 · 4 min · chart

Make your Life Easier by Running AWS CDK in a Docker Container

Cross post from Medium Tags: CDK, 3 Musketeers, AWS This is an example of AWS CDK in a docker container following the 3 Musketeers pattern. GitHub Repo: https://github.com/chrishart0/aws-cdk-typescript-3-musketeers What Is This 3 Musketeers Thing Anyway and Why Would I Want to Do Such a Thing as to Containerize the AWS CDK? Links: 3 Musketeers for an epic Developer Experience What is 3 Musketeers? What is AWS CDK There are a host of benefits to the 3 Musketeers pattern, which mostly center around Developer Experience....

February 22, 2022 · 3 min · chart

How to Use Tesseract OCR to Convert PDFs to Text

I have some PDFs which I need to get typed up into text to edit. I decided to go with Tesseract OCR as it seems to be the best tool for the job. Here are the steps for how to use Tesseract OCR to convert PDFs to text. Installation First things first, get Tesseract CLI installed. Follow the instructions here, these are linked to from the official Tesseract docs. sudo add-apt-repository ppa:alex-p/tesseract-ocr-devel sudo apt-get update sudo apt install tesseract-ocr tesseract-ocr-eng Note: the package didn’t properly place the eng....

February 20, 2022 · 3 min · chart

How to Increase Your Python Aws Cdk Lambda Development Speed by Testing Locally with AWS SAM

Cross-post from: Medium This article explains how to locally test, with AWS SAM (Serverless Application Model), a Lambda function + API Gateway created with AWS CDK (Cloud Development Kit). Python AWS CDK and SAM are a match made in heaven, or at least a match made in the cloud. This example uses the AWS CDK in Python. Using Python AWS CDK and SAM When using AWS CDK for your infrastructure as code, it can be a pain to figure out how to efficiently test your Lambda functions....

September 17, 2021 · 4 min · chart

Mac Tricks and Tips

I recently got a MacBook and am going to log all the tips and ticks I learn here while getting it just how I want it. This is essential a setup guide for myself if I need to setup another mac from scratch. Note: The mod key is what Mac calls ‘command’ Remap keys on specific external keyboard (fix Command/Mod and Ctrl/Option order) System Preferences > Keyboard > Modifier Keys…...

March 5, 2021 · 2 min · chart