Page History
Add_workflow_for_techpubs | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Panel | |
---|---|
In this section:
|
Info | ||
---|---|---|
| ||
Related articles: |
In the Google Cloud Platform, the Terraform module orchestrates the SBC HA pair with the following:
HFE 2.1 - Two HFE nodes, each with three interfaces
Info | ||
---|---|---|
| ||
Refer to Configure HFE Nodes in GCP for details. |
Prerequisites
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 (this is part ofcloudTemplates.tar.gz
) 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:
Caption | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Info | ||
---|---|---|
| ||
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.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 Create SBC HA or Standalone with HFE and TerraformExecute 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:
Panel | ||
---|---|---|
| ||
|
Panel | ||
---|---|---|
| ||
|
Panel | ||
---|---|---|
| ||
|
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 Create SBC HA or Standalone with HFE and TerraformExecute 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:
Panel | ||
---|---|---|
| ||
|
Panel | ||
---|---|---|
| ||
|
Panel | ||
---|---|---|
| ||
|
Execute Terraform Commands
After all the parameters are updated in the previous chosen configuration, execute the following commands:
Code Block |
---|
terraform init (Initialize Terraform) terraform validate (Validate the config. files in a directory, referring only to the config. and not accessing any remote services such as remote state, provider APIs, etc.) terraform plan (Preview the changes and ensure that "terraform.tfvars" are configured correctly before applying terraform apply (Apply the resource configuration) terraform destroy (Destroy all remote objects managed by a particular Terraform configuration) |