generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make cluster_id understand id as well (#205)
Fixes #170. The underlying problem is that anything else but `id` (like `cluster_id`) will not recreate the child resource if the parent resource is changed. Previously the root token wouldn't be updated when the consul cluster changes, because `cluster.cluster_id` was used instead of `cluster.id`. Now a root token can be created like this: ``` resource "hcp_consul_cluster_root_token" "token" { cluster_id = hcp_consul_cluster.example.id } ``` and because `id` is used, it will recreate the token when the cluster is updated. Relevant terraform-core issue: hashicorp/terraform#8099. `cluster_id` now understand both formats. When we release the next major version of this provider, we should only allow `id` going forward.
- Loading branch information
1 parent
7ed7142
commit e68bd42
Showing
4 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters