Create Resource Drivers

Learn how to write your own Resource Driver for Humanitec.

Introduction

Resource Drivers are used to establish the connection between Humanitec and your infrastructure. There is a growing number of Resource Drivers available out-of-the-box in Humanitec.

If you are missing a Resource Driver for your specific setup then don't hesitate to reach out to us.

You can also write your own Resource Drivers if you need to connect exotic infrastructure to your Internal Developer Platform. This section is intended to describe how to create and customize Resource Drivers.

How to get started?

When creating a Resource Driver you will need to consider two elements:

  • The Resource Driver itself and

  • the related Resource Account.

In general, Resource Drivers are code that fulfills the Humanitec Resource Driver Interface. This interface allows for certain actions to be performed on resources such as creation and destruction. Resource Drivers typically call APIs associated with managed services. They use the credentials provided by Resource Accounts in order to manipulate resources provided via managed services.

Resource Accounts are identities that are used to provision and manage resources via Dynamic Resource Definitions. They can represent a range of identities including Cloud Provider Service Accounts, VPN Accounts and SSH accounts.

If you are interested in getting support for writing your own Resource Driver then please get in touch with us and we are happy to support you.