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

4 Reasons You Cannot Ping Your AWS EC2 Instance and How To Fix Them

How to resolve ec2 public ip not working? This guide will explain how to use ping to diagnose an aws ec2 instance public IP not working. The overview is ensuring the public IP is allocated and the checking that your security group, NACL, and networking are configured corectly. How to ping ec2 instance when ping isn’t working? In this guide we will be review how to get ping working for your EC2 instance....

July 1, 2022 · 9 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