Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Overview

...

 This topic describes the steps to create a terraform Terraform based HyperCloud™ Blueprint. A simple terraform template (HCP). The Terraform Template consists of 2 two files at a minimum:

  1. Main.tf

    – This file has

    : Contains syntax for configuration of cloud resources.

  2. Variables.tf

    : This file consists of parameter definition which

    feed

    feeds the values into the main.tf when

    terraform

    Terraform processes the blueprints

...

  1. .

 Terraform Blueprints

...

You need to configure the following before you deploying the Terraform Blueprints.

  1. Backend State

    -

    : Provisioning Terraform requires a backend state configured via the HyperCloud™ Platform

    . Backend state in terraform preserve the current state of the deployment.

...

  1. (HCP).

Note

  • If the backend state has no state saved previously,

...

  • the Terraform plan provides the information objects that need to be created.

...

  • And, the

...

  • Terraform output shows the Update and Delete tasks. The existing resources need to be changed if ignored.

  • Workspace

...

  • : Consists of Terraform configuration which is associated with a backend state that defines how operations are executed and where persistent data such as the Terraform state are stored. Multiple workspaces can use the same backend state.

Deploy Your Terraform Blueprints

...

...

To deploy your Terraform Blueprints:

  1. Validate: validates Terraform files for syntax errors

  2. Plan

    - Creates

    : creates a plan of execution and displays information on changes that will occur.

  3. Terraform Apply

    : Terraform templates

    will

    needs to be applied, and the resources

    will

    need to be configured in the cloud Provider