In this section:
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
Refer to Configure HFE Nodes in GCP for details.
Before executing the Terraform module, ensure that you:
Create a project in which the resources are kept.
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.
Upload the HFE_GCE.sh
script to a bucket. For more information, refer to Create a Bucket in Cloud storage for HFE script upload.
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:
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.
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
.
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
.
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
.
After all the parameters are updated in the previous chosen configuration, execute the following command:
terraform init terraform validate terraform plan terraform apply terraform destroy