The agent config Kubernetes secret data source provides Consul agents running in Kubernetes the configuration needed to connect to the Consul cluster.
data "hcp_consul_agent_kubernetes_secret" "test" {
cluster_id = var.cluster_id
}
cluster_id
(String) The ID of the HCP Consul cluster.project_id
(String) The ID of the HCP project where the HCP Consul cluster is located.
If not specified, the project specified in the HCP Provider config block will be used, if configured.
If a project is not configured in the HCP Provider config block, the oldest project in the organization will be used.timeouts
(Block, Optional) (see below for nested schema)id
(String) The ID of this resource.secret
(String) The Consul agent configuration in the format of a Kubernetes secret (YAML).timeouts
Optional:
default
(String)