Skip to content

Commit

Permalink
Update resource_consul_cluster_root_token.go (#241)
Browse files Browse the repository at this point in the history
* Update resource_consul_cluster_root_token.go

Changed the description 
a) Existing text about invalidation is incorrect
b) Clarified that this token is similar to the one provided in the HCP Consul UI

* add space

* regen docs

Co-authored-by: Brenna Hewer-Darroch <[email protected]>
  • Loading branch information
srikrishmurthy and bcmdarroch authored Jan 24, 2022
1 parent ff2116c commit dddb10f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/resources/consul_cluster_root_token.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
page_title: "hcp_consul_cluster_root_token Resource - terraform-provider-hcp"
subcategory: ""
description: |-
The cluster root token resource is the token used to bootstrap the cluster's ACL system. Using this resource to create a new root token for a cluster will invalidate the consul root token accessor id and Consul root token secret id properties of the cluster.
The cluster root token resource is the token used to bootstrap the cluster's ACL system. You can also generate this root token from the HCP Consul UI.
---

# hcp_consul_cluster_root_token (Resource)

~> **Security Notice:** Please see this [list of recommendations](https://www.terraform.io/docs/language/state/sensitive-data.html) for storing sensitive information in Terraform.

The cluster root token resource is the token used to bootstrap the cluster's ACL system. Using this resource to create a new root token for a cluster will invalidate the consul root token accessor id and Consul root token secret id properties of the cluster.
The cluster root token resource is the token used to bootstrap the cluster's ACL system. You can also generate this root token from the HCP Consul UI.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions internal/provider/resource_consul_cluster_root_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ data:
// resourceConsulClusterRootToken represents an HCP Consul cluster.
func resourceConsulClusterRootToken() *schema.Resource {
return &schema.Resource{
Description: "The cluster root token resource is the token used to bootstrap the cluster's ACL system." +
" Using this resource to create a new root token for a cluster will invalidate the consul root token accessor id and Consul root token secret id properties of the cluster.",
Description: "The cluster root token resource is the token used to bootstrap the cluster's ACL system. " +
"You can also generate this root token from the HCP Consul UI.",
CreateContext: resourceConsulClusterRootTokenCreate,
ReadContext: resourceConsulClusterRootTokenRead,
DeleteContext: resourceConsulClusterRootTokenDelete,
Expand Down

0 comments on commit dddb10f

Please sign in to comment.