F5 Public Cloud Solutions > Event-Driven Service Discovery w/ HashiCorp Consul Terraform Sync and BIG-IP > Deploy infrastructure on AWS using Terraform Source | Edit on
Deploy Consul Data Center BIG-IP and Backend application¶
Generate a random password for your F5 BIG-IP instance.
Use the terraform.tfvars.example
template file to create a terraform.tfvars
file.
The example file is in the terraform folder.
Edit file terraform.tfvars
to specify a prefix for the resources being created and an IP address to access the environment once deployed.
prefix = “your-prefix” —> This can be your initials
Then Save file and come out of Nano editor by pressing Control O –> Save –> Control X
Once the configuration is complete, you can deploy the infrastructure with Terraform.
First, initialize Terraform.
Note: If terraform init
fails with Error: Failed to install provider issue the command again.
Then, use terraform plan
to check the resources that are going to be created.
You will see below 30 resources plan to be configured:
Finally, apply the changes.
Now you can see below 30 resources were configured:
- The final part of the Terraform output provides you with the information to access your infrastructure.
You can access your Consul datacenter UI using the address specified by the
Consul_UI
value.
