This project is documenting Lamda functions, I'm using to manage the AWS EC2 instances. The scripts are solving various issues for teams in managing workloads on AWS. I will be using various languages (Python, Typescript) to write the functions and most of the functions are being used in production workloads. Feel free to use them in your projects.
- AWS account
- Python
- Typescript
- Docker
-
Source folder: cdk app written in TypeScript
-
Root lists mudules of services in folder:
ec2Automate SysAdmin functionseksAutomate EKS SysAdmin functionsrdsAutomate DBA functionssecurityAutomate security testing and alerting
-
Go to the
moduleand inside you will find lambda folder for various functions -
Select the
functionyou need to utilise likessh_ec2 -
Inside the is a main lamda file and requirements.txt for additional packages
-
Add the required packages
-
Zip folder and upload to AWS Lambda
You can deploy your Lambda function code as a container image. AWS provides the following resources to help you build a container image for your Python function:
AWS Documentation available here
If you encounter a bug in the code, please first search the list of current open Issues on the GitHub repository. You may add additional feedback on an existing bug report. If the issue you're having has not yet been reported, please open a new issue. There is a template available for new issues. Please fill out all information requested in the template so we can help you more easily.