This is a reference implementation of a custom Driver for Humanitec. Like the built-in AWS driver, the reference implementation deploys a new S3 bucket on demand.
To test it out, you'll need to deploy it as a public facing webserver, and then register it through the Humanitec API. To learn more about registering drivers checkout the documentation.
Method | Path Template | Description |
---|---|---|
PUT |
/s3/{id} |
Upsert a bucket on AWS S3. |
DELETE |
/s3/{id} |
Delete a bucket on AWS S3. |
Method | Path Template | Description |
---|---|---|
GET |
/docs/spec.json |
OpenAPI v3 specification. |
GET |
/alive |
Should be used for liveness probe. |
GET |
/health |
Should be used for readiness probe. |
pip3 install poetry
poetry install
poetry run uvicorn main:app --host 0.0.0.0 --port 8080