A project for deploying AWS Lambda functions using TypeScript and JavaScript.
- Written in TypeScript and JavaScript
- Easy deployment of AWS Lambda functions
- Managed with npm
- Supports environment-specific configurations
- Includes automated build and deployment scripts
- Node.js (v14 or higher recommended)
- npm
- AWS CLI configured with appropriate credentials
- An AWS account with permissions to deploy Lambda functions
Clone the repository and install dependencies:
git clone git@github.com:mhshahzad/lambda-deploy.git
cd lambda-deploy
npm install
Create a .env file in the root directory to specify environment variables:
AWS_SECRET_ACCESS_KEY=your-secret-access-key
AWS_REGION=your-region
To compile the TypeScript code:
npm run build
To deploy a Lambda function, run:
npm run deploy
You can specify the function name and other parameters in the deploy script located in package.json.
To execute tests:
npm test
src/ - Source code for Lambda functions
dist/ - Compiled output
tests/ - Unit and integration tests
package.json - Project configuration and scripts
.env - Environment variables for AWS credentials
README.md - Project documentation
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes with clear and concise messages.
- Push your branch and create a pull request.
This project is licensed under the MIT License.
For questions or support, please contact at muhammad@mhshahzad.tech