In this section...

This Terraform Module orchestrates the HA SBC pair with HFE in the GCP.

Prerequisites

Before executing the Terraform module, ensure that you:

  1. Create a project in which the resources will be be created.
  2. Download the accounts.json file from GCP account and place it under the directory that contains the terraform files. Refer to Service Account for Terraform for required permissions.
  3. Upload the HFE_GCE.sh script to a bucket. See Creation of Bucket in Cloud storage for HFE script upload.
  4. Create a Service Account for running the instances with. SeeGCP Service Account Permissions.

 

Make sure the following files are present under main source directory:

Main Source Directory

File NameComment

common_modules

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

hfe_module

Contains all the files needed to bring up HFE.

sbc_module

Contains all the files needed to bring up SBC.

sbc_stand_alone

Main directory used to create a Standalone SBC.

sbc_hahfe

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

Standalone SBC

To create a Standalone SBC, modify the terraform.tfvars under sbc_stand_alone/ and run the terraform commands mentioned below.

A screenshot of terraform.tfvars is shown here. The highlighted parameters need to be changed depending on the user account/requirements. Other parameters can be modified according to deployment. The description of each parameter can be found in variables.tf.

 

terraform.tfvars for Standalone SBC

 

SBC HA With HFE

To create an HA SBC with HFE, modify the terraform.tfvars under sbc_sbc_hahfe/ and run the terraform commands mentioned below.

A screenshot of terraform.tfvars is shown here. The highlighted parameters need to be changed depending on the user account/requirements. Other parameters can be modified according to deployment.

The description of each parameter can be found in variables.tf.

 

terraform.tfvars for HA SBC With HFE

 

After all the parameters are updated, run the following commands:

terraform init
terraform validate
terraform plan
terraform apply