...
- 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 will be applied, and resources will be configured in the cloud Provider
...
- Terraform Blueprint requires a resource pool defined and entitled to the user.
Note: Terraform blueprint based deployed resources do not account for resource in the resource pool but require the resource pool to identify the cloud provider.
...
Configuring a Terraform Backend State (Azure)
Provisioning Terraform requires a backend state configured via HyperCloud™ Platform. Backend state in terraform preserve the current state of the deployment.
Note: If the backend state has no state saved previously, terraform plan will provide information objects which will be created. Otherwise, the terraform output will show update and delete tasks too which means existing resources will change if ignored.
Use the following steps to create a Terraform Backend State:
- Login to the HyperCloud™ Platform with your credentials Click on Services Orchestration Tab Click on Infra as Code
- Click on Backend State Click on + New Backend State
- Enter a Name : for e.g. hgprodazurebs1
- Select a Resource Pool: For e.g. RP.ARM.SouthEastAsia.RP1
- On the Entitled Users:
- Select Only Me: If this template is not meant to be shared
- Select Everyone: If this template is to be shared with everyone in the Tenant
- Select Groups & Users: if the template is to be shared with specific users or groups
- Click on Save Changes
Creating Terraform Workspace (Azure)
- Login to the HyperCloud™ Platform with your credentials Click on Services Orchestration Tab Click on Infra as Code Click on Workspace
- Click on New workspace
- Enter a Name: hgprodazurewks1
- Description: Enter a suitable description
- Environment: Select a suitable option for e.g. dev
- Cloud Type: Select Azure
- Resource pool: Select a resource pool for e.g. RP.ARM.SouthEastAsia.<RP-Name>
Note: In this release, resource pool is only required to obtain the cloud provider information. Terraform deployment does not account against the limits in the resource pool
- Backend State: Select a backend state for e.g. hgprodazurebs1
- On the Entitled Users:
- Select Only Me: If this template is not meant to be shared
- Select Everyone: If this template is to be shared with everyone in the Tenant
- Select Groups & Users: if the template is to be shared with specific users or groups
- Click Save Changes
Creating Terraform Based Blueprints (Azure)
...
- Click on Apply
- Click on the Workspace for e.g hgprodazurewks1
- Click on Timeline Tab to monitor the status of the terraform provisioning.
- Once the terraform template has successfully provisioned, Click on the Resource Tab to view the resources created via terraform template
- More terraform templates can be created by referring to https://www.terraform.io/docs/providers/azurerm/index.html
...
Creating and Provisioning Terraform Templates for AWS
Configuring a Terraform Backend State (AWS)
...