Overview
This topic describes the steps to create a Terraform based HyperCloud™ Blueprint(HCP). The Terraform Template consists of two files at a minimum:
Main.tf: Contains syntax for configuration of cloud resources.
Variables.tf: This file consists of parameter definition which feeds the values into the main.tf when Terraform processes the blueprints.
Terraform Blueprints
You need to configure the following before you deploying the Terraform Blueprints.
Backend State: Provisioning Terraform requires a backend state configured via the HyperCloud™ Platform(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:
Validate: validates Terraform files for syntax errors
Plan: creates a plan of execution and displays information on changes that will occur.
Terraform Apply: Terraform templates needs to be applied, and the resources need to be configured in the cloud Provider