Add Databases and other External Resources

Learn how to manage databases and External Resources your App needs in Humanitec.

Introduction

Your DevOps team can manage all databases and other External Resources you need for your Apps. The resources used can be configured individually for each Environment Type. See the App Configuration Management section for more details.

Add External Resource

You can add databases and other External Resources from the Workload Details Screen.

  • Click on Add external resource in the External Resources section of the Workload Details Page.

  • Select the External Resource you want to add to the Workload.

Example to add an External Resource to a Workload

When you add an External Resource to a Workload, the required External Resource will be provisioned for each Environment the Workload is deployed into. The concrete provisioning depends on whether the External Resource is using a Static Resource Definition or a Dynamic Resource Definition.

Database Example

Let's assume you connected a database as an External Resource to your Workload. The connection parameters for the database can be built up (depending on how your Container works) using Variable Substitutions.

For example for a PostgreSQL database, the Environment Variables available are:

  • ${externals.postgres.name}

  • ${externals.postgres.host}

  • ${externals.postgres.port}

  • ${externals.postgres.username}

  • ${externals.postgres.password}

Remove External Resource

You can remove External Resources from the Workload Details Screen.

  • Click the 3 dots on the tile of the External Resource your want to remove from the Workload.

  • Select Remove from the dropdown menu.

Example to remove an External Resource