Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/freonius/aws-api-gateway-local
A small example for a local AWS API Gateway V1
https://github.com/freonius/aws-api-gateway-local
Last synced: 10 days ago
JSON representation
A small example for a local AWS API Gateway V1
- Host: GitHub
- URL: https://github.com/freonius/aws-api-gateway-local
- Owner: Freonius
- License: mit
- Created: 2024-01-20T17:22:25.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-20T19:03:05.000Z (10 months ago)
- Last Synced: 2024-01-21T20:00:44.984Z (10 months ago)
- Language: Python
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS API Gateway Local
![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white)![AWS](https://img.shields.io/badge/AWS-%23FF9900.svg?style=for-the-badge&logo=amazon-aws&logoColor=white)![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)![Terraform](https://img.shields.io/badge/terraform-%235835CC.svg?style=for-the-badge&logo=terraform&logoColor=white)![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white)
A small example of how you can test your lambdas locally like, simulating how they should behave behind an API Gateway on AWS.
There is an article on Medium [here](https://medium.com/@freonius/test-an-aws-api-gateway-locally-b869249090f6).
## TLDR
Run these commands
```bash
docker-compose -f "./docker-compose.yml" up -d --build
cd aws
terraform init
terraform apply -auto-approve
```and go to [http://localhost:9001](http://localhost:9001) to try it out.
Obviously you need docker and terraform.
## Budget to run this?
0.00 EUR (equivalent to 0.00 USD)