From 7bb3c8c3c9cb23d312ee1f6447d41cf73068d725 Mon Sep 17 00:00:00 2001 From: i0rek Date: Mon, 28 Jun 2021 18:20:10 +0200 Subject: [PATCH] riddhis feedback --- docs/guides/consul-federation.md | 9 +++++---- examples/guides/consul_cluster_federation/main.tf | 9 +++++---- internal/provider/resource_consul_cluster.go | 1 + 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/guides/consul-federation.md b/docs/guides/consul-federation.md index 2a203844a..7e6a02b0f 100644 --- a/docs/guides/consul-federation.md +++ b/docs/guides/consul-federation.md @@ -31,9 +31,10 @@ resource "hcp_consul_cluster" "primary" { } resource "hcp_consul_cluster" "secondary" { - hvn_id = hcp_hvn.secondary.hvn_id - cluster_id = var.secondary_cluster_id - tier = "development" - primary_link = hcp_consul_cluster.primary.self_link + hvn_id = hcp_hvn.secondary.hvn_id + cluster_id = var.secondary_cluster_id + tier = "development" + primary_link = hcp_consul_cluster.primary.self_link + auto_hvn_to_hvn_peering = true } ``` \ No newline at end of file diff --git a/examples/guides/consul_cluster_federation/main.tf b/examples/guides/consul_cluster_federation/main.tf index 5402bc910..d03576a39 100644 --- a/examples/guides/consul_cluster_federation/main.tf +++ b/examples/guides/consul_cluster_federation/main.tf @@ -17,8 +17,9 @@ resource "hcp_consul_cluster" "primary" { } resource "hcp_consul_cluster" "secondary" { - hvn_id = hcp_hvn.secondary.hvn_id - cluster_id = var.secondary_cluster_id - tier = "development" - primary_link = hcp_consul_cluster.primary.self_link + hvn_id = hcp_hvn.secondary.hvn_id + cluster_id = var.secondary_cluster_id + tier = "development" + primary_link = hcp_consul_cluster.primary.self_link + auto_hvn_to_hvn_peering = true } \ No newline at end of file diff --git a/internal/provider/resource_consul_cluster.go b/internal/provider/resource_consul_cluster.go index 661ed417b..0dc133adc 100644 --- a/internal/provider/resource_consul_cluster.go +++ b/internal/provider/resource_consul_cluster.go @@ -134,6 +134,7 @@ func resourceConsulCluster() *schema.Resource { Type: schema.TypeBool, Optional: true, ForceNew: true, + Computed: true, }, // computed outputs "organization_id": {