Use Terraform to Extend Consul Service Discovery
The Terraform Consul provider exposes resources used to interact with Consul. You can use this provider to accomplish a number of tasks, including:
- Register external services or services that cannot be registered with local agent
- Reference Consul keys in your Terraform configuration
- Reference a list of agents
» Use Terraform to Register External Services
In a new Learn guide, you will register two external services with a small Consul datacenter. This guide will take you through the steps needed to deploy a three server Consul datacenter and two external services. You will then configure the Terraform Consul provider to register the external services with health checks to Consul.
You have two options for following along with this guide: locally or using the in-page interactive tutorial. If you want to deploy the demo locally, you will clone the Github repo and use Docker Compose.
Register External Services with Terraform
» Monitor Consul with AppDynamics CNS
Additionally, we recently published a guide to enable AppDynamics CNS to monitor Consul. In this new guide, you'll learn how to use the Consul Monitoring Extension for AppDynamics CNS to collect Consul telemetry data and node information.
Sign up for the latest HashiCorp news
More blog posts like this one

HashiCorp at re:Inforce: Advancing Security Lifecycle Management with AWS
HashiCorp will be at AWS re:Inforce 2025 sharing expert talks, product demos, and news announcements.

Vault Radar, Boundary transparent sessions, and more at HashiDays 2025
New Security Lifecycle Management (SLM) features from HashiCorp Vault, Boundary, and Consul help organizations remediate and prevent secrets exposures, improve developer access experience, and improve service discovery.

Terraform ephemeral resources, Waypoint actions, and more at HashiDays 2025
HashiCorp Terraform, Waypoint, and Nomad continue to simplify hybrid cloud infrastructure with new capabilities that help secure infrastructure before deployment and effectively manage it over time.