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

How to resolve ModuleNotFoundError: No module named ‘distutils.cmd’ Check which version of python you are using Run python –version Check if pip can find dist tools for you version of python Python 3.9 example: python3.9 -m pip --version Install dist tools for your version of python Example for python 3.9 on Ubuntu/Debian: sudo apt install python3.9-distutils I got this error today with AWS SAM: ModuleNotFoundError: No module named ‘distutils.cmd’, here is how I fixed it....

October 11, 2022 · 2 min · chart

AWS SAM 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 samcli.commands.exceptions.UserException: NodejsNpmBuilder:MoveDependencies - [WinError 145] The directory is not empty: 'C:\\path\\to\\my\\lambda\\code\\.aws-sam\\auto-dependency-layer\\myLambdaFunction\\node_modeules\\module' 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 again it will complete successfully....

September 22, 2022 · 1 min · chart

aws:asset:path - Guide to using aws:asset:path 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 a plain CloudFormation template, not a SAM template, works just fine. In order to use AWS SAM though you must provide a Metadata section for the lambda function at the same level as Type: and Properties:....

September 22, 2022 · 2 min · chart

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

Optimizing for a Cloud-Native Developer Experience

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 lot, and present a live demo of a Cloud Native application working locally - complete with unit tests, end-to-end tests and smoke tests....

March 25, 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