In the Google Cloud Platform, the Terraform module orchestrates the SBC HA pair with either of the following:

  • HFE 2.0 - One HFE node with five interfaces

  • HFE 2.1 - Two HFE nodes, each with three interfaces

Note

Refer to Configure HFE Nodes in GCP for details.


Prerequisites

Before executing the Terraform module, ensure that you:

  1. Create a project in which the resources are kept.

  2. Download the accounts.json file from your GCP account, and place it under the directory that contains the Terraform files. Refer to "Account Permissions for Terraform" of the page GCP Service Account Permissions for required permissions.

  3. Upload the HFE_GCE.sh script to a bucket. For more information, refer to Create a Bucket in Cloud storage for HFE script upload.

  4. Create a Service Account for running the instances. For more information, refer to GCP Service Account Permissions.

Ensure the following files are present under main source directory:

Main Source Directory

File Name

Comment

common_modules

Contains all the sub-modules used to create the resources like VPCs, Subnets, and Firewalls.

hfe_module_single

Contains all the files needed to instantiate the HFE 2.0.

hfe_module_split

Contains all the files needed to instantiate the HFE 2.1.

sbc_module

Contains all the files needed to instantiate the SBC.

sbc_stand_alone

Main directory used to create a Standalone SBC.

sbc_hahfe_single

Main directory used to create a SBC HA pair with HFE 2.0.

sbc_hahfe_split

Main directory used to create a SBC HA pair with HFE 2.1.


Note

Do not create a router and a router-nat, if it already exists for the VPC network/subnet. If a router and router-nat containing all subnet ranges exist, you cannot create a new one.

To create a new router and router-nat, specify different VPC networks/subnets to avoid an error. 

Create SBC HA with HFE

SBC HA with HFE 2.0

To create an HA SBC with HFE 2.0, modify the terraform.tfvars under the directory sbc_hahfe_single/, and execute the Terraform command listed at Execute Terraform Command.

A screenshot of terraform.tfvars is shown below. Modify the highlighted parameters depending on the user account/requirements. You may modify the values of the other parameters based on the deployment.

The description of the parameters are available in variables.tf.

terraform.tfvars for HA SBC With HFE 2.0




SBC HA with HFE 2.1

To create an HA SBC with HFE 2.1, modify the terraform.tfvars under the directory sbc_hahfe_split/, and execute the Terraform command listed at Execute Terraform Command.

A screenshot of terraform.tfvars is shown below. Modify the highlighted parameters depending on the user account/requirements. You may modify the values of the other parameters based on the deployment.

The description of the parameters are available in variables.tf.

terraform.tfvars for HA SBC With HFE 2.1




Create Standalone SBC

To create a Standalone SBC, modify the terraform.tfvars under the directory sbc_stand_alone/, and execute the Terraform command listed at Execute Terraform Command.

A screenshot of terraform.tfvars is shown below.

Modify the highlighted parameters based on the user account/requirements. You may modify values for other parameters based on the deployment. The description of the parameters are in variables.tf.

terraform.tfvars for Standalone SBC




Execute Terraform Command

After all the parameters are updated in the previous chosen configuration, execute the following command:

terraform init terraform validate terraform plan terraform apply