Permission denied (publickey) aws SSH to EC2 instance ✔️ [Solved ]

How to resolve Permission denied (publickey) for SSH into an AWS EC2 instance The solutions are detailed in this article, but in summary you must ensure you’re using the right key, the right username, and the correct address. There are 3 main solutions for Permission denied (publickey) aws ec2 instance: Check you are using the right key to resolve Permission denied (publickey) Make sure you are using the right key. Check the Check you are using the right key via the EC2 console....

November 30, 2022 · 2 min · chart

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

Optimizing Ubuntu Battery Life for 50%+ battery life gains🔋

Linux battery life on laptops is known not to be great. Due to the need to test on so many types of hardware, it isn’t feasible for distros to be optimized for it out of the box. Here are my notes on what I’ve done to optimize Ubuntu battery life on my laptop, while some of the install commands will be specific to Ubuntu / Debian derived distros, the tips will work on any distro....

October 6, 2022 · 7 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