Skip to content

humanitec-tutorials/custom-driver-reference-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Humanitec Custom Resource Driver - Reference implementation

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.

Endpoints

Public

Method Path Template Description
PUT /s3/{id} Upsert a bucket on AWS S3.
DELETE /s3/{id} Delete a bucket on AWS S3.

Service

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.

Installing the requirements

pip3 install poetry
poetry install

Running the server

poetry run uvicorn main:app --host 0.0.0.0 --port 8080

About

A reference driver that creates S3 Buckets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages