Overview
This topic describes the steps to create a Terraform based HyperCloud™Platform Blueprint(HCP). The Terraform Template consists of two configuration files that declare the state that you want to achieve for your cloud resources.
The two files are :
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 use Terraform configuration syntax to model the infrastructure of a cloud environment, including its virtual machines(VMs), networks, and storage. A Terraform blueprint can also include software components to be deployed in the environment.
When you have modeled the cloud environment and software components in the blueprint, you can create or update a cloud environment based on that blueprint.
You need to configure the following before you deploy the Terraform Blueprints:
Backend State: Provisioning Terraform requires a backend state configured via the HyperCloud™ Platform(HCP).(Refer Note 1)
Note
(1)If the backend state has no state saved previously, the Terraform plan provides the information objects that need to be created.
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.
Create your Terraform Blueprint
Note: Terraform blueprint based deployed resources do not account for resources in the resource pool but require the resource pool to identify the cloud provider.
You can create a terraform blueprint for:
AWS
Azure
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.