Terraform Module

Terraform module installation instructions

The Terraform module option provides maximum simplicity. It provisions all the required infrastructure and permissions in your cloud provider of choice before deploying the DBNL platform Helm chart, removing the need to provision any infrastructure or permission separately.

Terraform modules are available for AWS and GCP. For access to the Terraform module for your cloud provider of choice and to get registry credentials, please reach out to our teamarrow-up-right.

Prerequisites

The following prerequisite steps are required before starting the Terraform module installation.

Configuration

To configure the Terraform module, you will need:

  • A domain name to host the DBNL platform (e.g. dbnl.example.com).

  • A set of DBNL registry credentials to pull the DBNL artifacts (e.g. Docker images, Helm charts).

  • An RSA key pair to sign the personal access tokens.

An RSA key pair can be generated with:

openssl genrsa -out dbnl_dev_token_key.pem 2048

Requirements

On the environment from which you are planning to install the module, you will need to:

Infrastructure

At a minimum, the user performing the installation needs to be able to provision the following infrastructure:

Installation

The Terraform module can be installed using terraform applyarrow-up-right.

circle-info

We recommend using a remote backendarrow-up-right to manage the Terraform state.

Steps

The steps to install the Terraform module using the Terraform CLI are as follows:

  1. Create a DBNL folder and change to it.

  1. Create a modules folder and copy the terraform module to it.

  1. Create a variables.tf file.

  1. Create a main.tf file.

  1. Create a dbnl.tfvars file.

  1. Initialize the Terraform module.

  1. Apply the Terraform module.

Options

For more details on all the installation options, see the Terraform module README file and examples folder.

Was this helpful?