Notes on SAM Sync for Faster Serverless Development

Why is my development process slow? When developing the developer must have fast feedback loops. The fast feedback loop is absolutely critical to getting work done in a productive manner. If you’ve ever said to yourself that Lambda development feels slow to you then you’ve experienced the effect of slow feedback loops. In this guide I will go over how to speed up your development by increasing the cycle time of your feedback loops....

September 20, 2022 · 8 min · chart

☑️1 Step Fix: ModuleNotFoundError: No module named 'awscli'

How to Fix: ModuleNotFoundError: No module named ‘awscli’? You must install or reinstall the awscli pip module for python. Quick Fix for the [ModuleNotFoundError: No module named 'awscli'](modulenotfounderror: No module named 'awscli')error Reinstall/Update the AWS cli python3 -m pip install --upgrade --force-reinstall awscli Test the AWS CLI now works aws –version ModuleNotFoundError: No module named ‘awscli’ error Here is the full text of the error I got: Traceback (most recent call last): File "/home/chart/....

June 7, 2022 · 2 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

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

Fix error sam deploy unable to locate credentials using AWS SAM with AWS CLI v2 SSO

I got this error sam deploy unable to locate credentials when trying to use AWS SAM with AWS CLIv2 SSO. Error: Unable to upload artifact myAPIName referenced by CodeUri parameter of myAPIName resource. Unable to locate credentials In summary, the fix is to update SAM. The issue: sam deploy unable to locate credentials First, I signed into AWS SSO with the profile I wanted to use. $ aws sso login --profile new-dev-sso Then, I tried to run sam deploy....

October 7, 2020 · 1 min · chart

Install AWS SAM CLI on Linux without Homebew

The official AWS installation docs for Linux tell you to install Homebew so that you can install the AWS SAM CLI. This is just plain dumb. You should not need to install a new package manager just to install one tool. Below are the steps to follow so that you do not have to. Prerequisites Ensure Python 3 is install Ensure PIP 3 is installed Ensure AWS CLI v2 is installed and configured...

July 17, 2020 · 1 min · chart