On this page
consul_agent_config
Note: The
consul_agent_configresource differs fromconsul_agent_self, providing less information but utilizing stable APIs.consul_agent_selfwill be deprecated in a future release.
The consul_agent_config data source returns configuration data from the agent specified in the provider.
Example Usage
data "consul_agent_config" "remote_agent" {}
output "info" {
consul_version = "${data.consul_agent_config.version}"
}
Attributes Reference
The following attributes are exported:
datacenter- The datacenter the agent is running innode_id- The ID of the node the agent is running onnode_name- The name of the node the agent is running onserver- Boolean if the agent is a server or notrevision- The first 9 characters of the VCS revision of the build of Consul that is runningversion- The version of the build of Consul that is running
© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/consul/d/agent_config.html