Create a New Blueprint from a Terraform Module

  • 23 November 2021
  • 0 replies
  • 62 views

In this article, we will learn how to create a blueprint out of a Terraform module. You can create multiple blueprints out of the same Terraform module, each with its own configurations (cloud account and region, inputs).

Prerequisites:

  • Terraform module associated to the space

To create a blueprint out of a Terraform module:

  1. Open the Blueprints page and select the Terraform Blueprints tab.
  2. Click the New blueprint button.
    A window pops up, listing the Terraform modules that are available in your space.
  3. Select the suitable Terraform module and click Confirm.
  4. Fill in the Terraform module details for this blueprint (Mandatory parameters are indicated with *):
    • General *:
      • Name *: Displays the module’s name.
      • Alias *: Provide a display name for the blueprint.
      • Description: Provide an informative description for the module.
      • Enable logs: (Enabled by default) Decide if to allow the sandbox to display Terraform deployment logs. 
    • Compute Services *:
      • Cloud Account & Compute Service *: The cloud account or Kubernetes compute service to use.
      • Region *: (Applies to cloud accounts) The region of the cloud account.
    • Inputs:
      • Name *: Specify the input’s name (case-insensitive).
      • Value *: Specify the input’s value (string by default).
      • HCL: Select the checkbox to define the input value in HCL format. In HCL format, specify the value as a single line. Supported value types: bool, int, map, list, etc. If the checkbox is not selected, the value will be treated as a string.

      • Description: Provide an informative description for the output.
      • Overridable: Select the checkbox to allow the input value to be overridden in the space level or at runtime.
  5. Click Save.

    The blueprint is displayed in the Blueprints > Terraform Blueprints tab.

     


This topic has been closed for comments