[Fix ✔️] ModuleNotFoundError: No module named ‘distutils.cmd’

I got this error today with AWS SAM: ModuleNotFoundError: No module named ‘distutils.cmd’, here is how I fixed it. Keep reading below for more details. Quick Fix for ModuleNotFoundError: No module named ‘distutils.cmd’ The issue for me was pip, which comes with distutils, wasn’t installed for python 3.9, which is what AWS SAM was trying … Read more

aws:asset:path – Guide to using aws:asset:path in CloudFormation

aws:asset:path with AWS SAM in CloudFormation

aws:asset:path is a type of metadata which can be configured in CloudFromation for a Lambda function. Below are my notes on how to use it, specifically for use with AWS SAM directly with standard CloudFormation. Use aws:asset:path to specify the location of code for Lambda Function in CloudFormation for use with SAM. Using SAM with … Read more

AWS SAM samcli.commands.exceptions.UserException: [WinError 145] The directory is not empty

samcli.commands.exceptions.UserException: WinError 145] The directory is not empty

How to fix the AWS SAM error samcli.commands.exceptions.UserException: NodejsNpmBuilder:MoveDependencies – [WinError 145] The directory is not empty I’ve been seeing this error intermittently for some time. It comes intermittent. Fix for [WinError 145] The directory is not empty Just delete the .aws-sam directory whenever this error occurs or ignore it. If you run the command … Read more

Notes on SAM Sync for Faster Serverless Development

AWS SAM faster Development for Lambda

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 … Read more

Optimizing for a Cloud-Native Developer Experience

Micro feedback loops

Learn why and how focusing on developer experience and mirco feedback loops will speed up your development process and help you to create a better product. Cross Post from: www.drewkhoury.com Optimizing for a Cloud-Native Developer Experience – Presentation Chris and Drew share their combined knowledge around developer experience, why (micro) feedback loops matter a whole … Read more

AWS SAM in a Docker Container

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 … Read more

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

Install AWS SAM CLI on Linux

Cross-post from: MediumThis 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 … Read more