On this page
consul_agent_self
Warning: The
consul_agent_selfresource has been deprecated and will be removed from a future release of the provider. Read the upgrade instructions for more information.
The consul_agent_self data source returns configuration and status data from the agent specified in the provider.
Example Usage
data "consul_agent_self" "read-dc1-agent" {
query_options {
# Optional parameter: implicitly uses the current datacenter of the agent
datacenter = "dc1"
}
}
# Set the description to a whitespace delimited list of the services
resource "example_resource" "app" {
description = "Consul datacenter ${data.consul_agent_self.read-dc1-agent.datacenter}"
# ...
}
Attributes Reference
The following attributes are exported:
acl_datacenteracl_default_policyacl_disabled_ttlacl_down_policyacl_enforce_0_8_semanticsacl_ttladdressesadvertise_addradvertise_addr_wanadvertise_addrsatlas_joinbind_addrbootstrap_expectbootstrap_modecheck_deregister_interval_mincheck_reap_intervalcheck_update_intervalclient_addrdns- A map of DNS configuration attributes. See below for details on the contents of thednsattribute.dns_recursors- A list of all DNS recursors.data_dirdatacenterdev_modedomainenable_anonymous_signatureenable_coordinatesenable_debugenable_remote_execenable_syslogenable_uienable_update_checkidleave_on_intleave_on_termlog_levelnameperformancepid_fileportsprotocol_versionreconnect_timeout_lanreconnect_timeout_wanrejoin_after_leaveretry_joinretry_join_ec2- A map of EC2 retry attributes. See below for details on the available information.retry_join_gce- A map of GCE retry attributes. See below for details on the available information.retry_join_wanretry_max_attemptsretry_max_attempts_wanserf_lan_bind_addrserf_wan_bind_addrserver_modeserver_namesession_ttl_minstart_joinstart_join_wansyslog_facilitytls_ca_filetls_cert_filetls_key_filetls_min_versiontls_verify_incomingtls_verify_outgoingtls_verify_server_hostnametagged_addressestelemetry- A map of telemetry configuration.translate_wan_addrsui_dirunix_socketsversion- The version of the Consul agent.version_prereleaseversion_revision
DNS Attributes
allow_staleenable_compressionenable_truncatemax_stalenode_ttlonly_passingrecursor_timeoutservice_ttludp_answer_limit
Retry Join EC2 Attributes
Retry Join GCE Attributes
Telemetry Attributes
circonus_api_appcirconus_api_tokencirconus_api_urlcirconus_broker_idcirconus_check_idcirconus_check_tagscirconus_display_namecirconus_force_metric_activationcirconus_instance_idcirconus_search_tagcirconus_select_tagcirconus_submission_intervalcirconus_submission_urldogstatsd_addrdogstatsd_tagsenable_hostnamestatsd_addrstatsite_addrstatsite_prefix
© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/consul/d/agent_self.html