Skip to content

Commit

Permalink
add note about configuring consul provider (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmdarroch authored Jun 23, 2021
1 parent cef0868 commit 7f8b8cd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/guides/consul-root-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ resource "hcp_consul_cluster_root_token" "example" {
cluster_id = hcp_consul_cluster.example.cluster_id
}
```

The secret ID of this root token can be used to configure the Consul provider.

```
provider "consul" {
address = "example.consul.io:80"
token = hcp_consul_cluster_root_token.example.root_token_secret_id
}
```
9 changes: 9 additions & 0 deletions templates/guides/consul-root-token.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@ or is managed outside of Terraform. It is important to note that when creating a
the existing root token will be invalidated.

{{ tffile "examples/guides/consul_cluster_root_token/main.tf" }}

The secret ID of this root token can be used to configure the Consul provider.

```
provider "consul" {
address = "example.consul.io:80"
token = hcp_consul_cluster_root_token.example.root_token_secret_id
}
```

0 comments on commit 7f8b8cd

Please sign in to comment.