- Use
./scripts/build_images.sh
to create a Docker image of a Python service (running FastAPI) - Use
./scripts/start_containers.sh
to start the service on your local (using docker-compose) - CDK creates a Lambda function + API GateWay integration, but can created any other resources. An example using QLDB is included.
- Includes wirings to package Python service and spawn an AWS Lambda function from it using Zappa. Lambda gets connected to AWS API GateWay and returns an endpoint you can call.
- You can
curl
the endpoint's/internal/ping
to check it's health.
chmod 777 scripts/*.sh
- Start the services via
./scripts/start.sh
.localhost:8000/docs
should show the API schema.curl localhost:8000/internal/ping
to check health.
From root of repo:
./scripts/build_images.sh
./scripts/start_containers.sh
./scripts/deploy.sh