From 76065102d3bf3cc0adecab7597cf1f04b7e2cef2 Mon Sep 17 00:00:00 2001 From: a-atri Date: Wed, 20 Nov 2024 21:05:13 +0530 Subject: [PATCH 1/5] Release docs for terraform version V1.4.0 --- .../azure_network_peer_command.md | 31 +++++ docs/data-sources/clusters.md | 1 + docs/data-sources/network_peers.md | 14 +++ docs/guides/1.4.0-upgrade-guide.md | 113 ++++++++++++++++++ docs/index.md | 8 ++ docs/resources/cluster.md | 1 + docs/resources/flush.md | 23 ++++ docs/resources/network_peer.md | 20 ++++ go.mod | 33 ++--- go.sum | 30 +++++ 10 files changed, 259 insertions(+), 15 deletions(-) create mode 100644 docs/data-sources/azure_network_peer_command.md create mode 100644 docs/guides/1.4.0-upgrade-guide.md create mode 100644 docs/resources/flush.md diff --git a/docs/data-sources/azure_network_peer_command.md b/docs/data-sources/azure_network_peer_command.md new file mode 100644 index 00000000..49b60d38 --- /dev/null +++ b/docs/data-sources/azure_network_peer_command.md @@ -0,0 +1,31 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "couchbase-capella_azure_network_peer_command Data Source - terraform-provider-couchbase-capella" +subcategory: "" +description: |- + +--- + +# couchbase-capella_azure_network_peer_command (Data Source) + + + + + + +## Schema + +### Required + +- `cluster_id` (String) +- `organization_id` (String) +- `project_id` (String) +- `resource_group` (String) +- `subscription_id` (String) +- `tenant_id` (String) +- `vnet_id` (String) +- `vnet_peering_service_principal` (String) + +### Read-Only + +- `command` (String) diff --git a/docs/data-sources/clusters.md b/docs/data-sources/clusters.md index f1258ac4..483eb8f1 100644 --- a/docs/data-sources/clusters.md +++ b/docs/data-sources/clusters.md @@ -37,6 +37,7 @@ Read-Only: - `couchbase_server` (Attributes) (see [below for nested schema](#nestedatt--data--couchbase_server)) - `current_state` (String) - `description` (String) +- `enable_private_dns_resolution` (Boolean) - `id` (String) - `name` (String) - `organization_id` (String) diff --git a/docs/data-sources/network_peers.md b/docs/data-sources/network_peers.md index 417ec747..280d521d 100644 --- a/docs/data-sources/network_peers.md +++ b/docs/data-sources/network_peers.md @@ -54,6 +54,7 @@ Read-Only: Read-Only: - `aws_config` (Attributes) (see [below for nested schema](#nestedatt--data--provider_config--aws_config)) +- `azure_config` (Attributes) (see [below for nested schema](#nestedatt--data--provider_config--azure_config)) - `gcp_config` (Attributes) (see [below for nested schema](#nestedatt--data--provider_config--gcp_config)) @@ -68,6 +69,19 @@ Read-Only: - `vpc_id` (String) + +### Nested Schema for `data.provider_config.azure_config` + +Read-Only: + +- `cidr` (String) +- `provider_id` (String) +- `resource_group` (String) +- `subscription_id` (String) +- `tenant_id` (String) +- `vnet_id` (String) + + ### Nested Schema for `data.provider_config.gcp_config` diff --git a/docs/guides/1.4.0-upgrade-guide.md b/docs/guides/1.4.0-upgrade-guide.md new file mode 100644 index 00000000..f9b74592 --- /dev/null +++ b/docs/guides/1.4.0-upgrade-guide.md @@ -0,0 +1,113 @@ +--- +layout: "couchbase-capella" +page_title: "Couchbase Capella Provider 1.4.0: Upgrade and Information Guide" +sidebar_current: "docs-couchbase-capella-guides-140-upgrade-guide" +description: |- +Couchbase Capella Provider 1.4.0: Upgrade and Information Guide +--- + + +# Couchbase Capella Provider 1.4.0: Upgrade and Information Guide + +New features in 1.4.0 + + +## New Features +* Enable Flush Bucket [`couchbase-capella_flush`](https://registry.terraform.io/providers/couchbasecloud/couchbase-capella/latest/docs/resources/flush) +* Enable Azure Network Peer [`couchbase-capella_network_peer`](https://registry.terraform.io/providers/couchbasecloud/couchbase-capella/latest/docs/resources/network_peer) + + +## Flush Bucket +Use the new `flush` resource to flush a bucket +``` +output "new_bucket" { + value = couchbase-capella_bucket.new_bucket +} +``` +``` +output "bucket_id" { + value = couchbase-capella_bucket.new_bucket.id +} +``` +``` +resource "couchbase-capella_bucket" "new_bucket" { + name = var.bucket.name + organization_id = var.organization_id + project_id = var.project_id + cluster_id = var.cluster_id + type = var.bucket.type + storage_backend = var.bucket.storage_backend + memory_allocation_in_mb = var.bucket.memory_allocation_in_mb + bucket_conflict_resolution = var.bucket.bucket_conflict_resolution + durability_level = var.bucket.durability_level + replicas = var.bucket.replicas + flush = var.bucket.flush + time_to_live_in_seconds = var.bucket.time_to_live_in_seconds + eviction_policy = var.bucket.eviction_policy +} +``` +``` +output "new_flush" { + value = couchbase-capella_flush.new_flush +} +``` +``` +resource "couchbase-capella_flush" "new_flush" { + organization_id = var.organization_id + project_id = var.project_id + cluster_id = var.cluster_id + bucket_id = var.bucket_id +} +``` +For more information, see the [flush bucket examples](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/flush_bucket). + +## Azure Network Peer + +Use the `azure_network_peer_command` data source to get an AWS command for configuring VPC endpoint. +``` +output "azure_network_peer_command" { + value = data.couchbase-capella_azure_network_peer_command.azure_network_peer_command +} +``` +``` +data "couchbase-capella_azure_network_peer_command" "azure_network_peer_command" { + organization_id = var.organization_id + project_id = var.project_id + cluster_id = var.cluster_id + tenant_id = var.tenant_id + vnet_id = var.vnet_id + subscription_id = var.subscription_id + resource_group = var.resource_group + vnet_peering_service_principal = var.vnet_peering_service_principal +} +``` +Create a new Azure network peer, use the `network-peer` resource as follows: +``` +output "new_network_peer" { + value = couchbase-capella_network_peer.new_network_peer +} +``` +``` +output "peer_id" { + value = couchbase-capella_network_peer.new_network_peer.id +} +``` +``` +resource "couchbase-capella_network_peer" "new_network_peer" { + organization_id = var.organization_id + project_id = var.project_id + cluster_id = var.cluster_id + name = var.network_peer.name + provider_type = var.network_peer.provider_type + provider_config = { + azure_config = { + tenant_id = var.azure_config.tenant_id + resource_group = var.azure_config.resource_group + subscription_id = var.azure_config.subscription_id + cidr = var.azure_config.cidr + vnet_id = var.azure_config.vnet_id + } + } +} +``` +For more information, see the [network peer examples](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/network_peer). \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index c4f9a437..9ecf431b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -298,3 +298,11 @@ To get started, see the [Provider Example Configs](https://github.com/couchbasec Manage Private Endpoints +* [Manage Azure Network Peer](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/network_peer) + + Manage Azure Network Peer + +* [Manage Flush Bucket](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/flush_bucket) + + Manage Flush Bucket + diff --git a/docs/resources/cluster.md b/docs/resources/cluster.md index aea71582..d5de05ce 100644 --- a/docs/resources/cluster.md +++ b/docs/resources/cluster.md @@ -30,6 +30,7 @@ description: |- - `configuration_type` (String, Deprecated) - `couchbase_server` (Attributes) (see [below for nested schema](#nestedatt--couchbase_server)) - `description` (String) +- `enable_private_dns_resolution` (Boolean) - `if_match` (String) ### Read-Only diff --git a/docs/resources/flush.md b/docs/resources/flush.md new file mode 100644 index 00000000..91a08bb6 --- /dev/null +++ b/docs/resources/flush.md @@ -0,0 +1,23 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "couchbase-capella_flush Resource - terraform-provider-couchbase-capella" +subcategory: "" +description: |- + +--- + +# couchbase-capella_flush (Resource) + + + + + + +## Schema + +### Required + +- `bucket_id` (String) +- `cluster_id` (String) +- `organization_id` (String) +- `project_id` (String) diff --git a/docs/resources/network_peer.md b/docs/resources/network_peer.md index 65259692..32dd9f19 100644 --- a/docs/resources/network_peer.md +++ b/docs/resources/network_peer.md @@ -37,6 +37,7 @@ description: |- Optional: - `aws_config` (Attributes) (see [below for nested schema](#nestedatt--provider_config--aws_config)) +- `azure_config` (Attributes) (see [below for nested schema](#nestedatt--provider_config--azure_config)) - `gcp_config` (Attributes) (see [below for nested schema](#nestedatt--provider_config--gcp_config)) @@ -57,6 +58,25 @@ Read-Only: - `provider_id` (String) + +### Nested Schema for `provider_config.azure_config` + +Required: + +- `cidr` (String) + +Optional: + +- `resource_group` (String) +- `subscription_id` (String) +- `tenant_id` (String) +- `vnet_id` (String) + +Read-Only: + +- `provider_id` (String) + + ### Nested Schema for `provider_config.gcp_config` diff --git a/go.mod b/go.mod index 9cc78b87..98e07bd6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/couchbasecloud/terraform-provider-couchbase-capella -go 1.21.4 +go 1.22.7 + +toolchain go1.22.9 require ( github.com/couchbase/tools-common/functional v1.2.0 @@ -25,7 +27,7 @@ require ( github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/bgentry/speakeasy v0.1.0 // indirect - github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect + github.com/bmatcuk/doublestar/v4 v4.7.1 // indirect github.com/cloudflare/circl v1.3.7 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fatih/color v1.16.0 // indirect @@ -36,17 +38,18 @@ require ( github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect - github.com/hashicorp/go-hclog v1.6.2 // indirect + github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-plugin v1.6.0 // indirect + github.com/hashicorp/go-retryablehttp v0.7.7 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hashicorp/go-version v1.7.0 // indirect - github.com/hashicorp/hc-install v0.7.0 // indirect + github.com/hashicorp/hc-install v0.9.0 // indirect github.com/hashicorp/hcl/v2 v2.20.0 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.21.0 // indirect - github.com/hashicorp/terraform-json v0.22.1 // indirect - github.com/hashicorp/terraform-plugin-docs v0.19.4 // indirect + github.com/hashicorp/terraform-json v0.23.0 // indirect + github.com/hashicorp/terraform-plugin-docs v0.20.0 // indirect github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.3 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect @@ -66,23 +69,23 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/posener/complete v1.2.3 // indirect - github.com/rogpeppe/go-internal v1.12.0 // indirect + github.com/rogpeppe/go-internal v1.13.1 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.5.0 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - github.com/yuin/goldmark v1.7.1 // indirect + github.com/yuin/goldmark v1.7.7 // indirect github.com/yuin/goldmark-meta v1.1.0 // indirect - github.com/zclconf/go-cty v1.14.4 // indirect + github.com/zclconf/go-cty v1.15.0 // indirect go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect - golang.org/x/crypto v0.21.0 // indirect + golang.org/x/crypto v0.24.0 // indirect golang.org/x/exp v0.0.0-20231226003508-02704c960a9b // indirect - golang.org/x/mod v0.17.0 // indirect - golang.org/x/net v0.23.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/text v0.15.0 // indirect - golang.org/x/tools v0.16.0 // indirect + golang.org/x/mod v0.21.0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.19.0 // indirect + golang.org/x/tools v0.22.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/grpc v1.63.2 // indirect diff --git a/go.sum b/go.sum index 187141b1..3eaa65d7 100644 --- a/go.sum +++ b/go.sum @@ -25,6 +25,8 @@ github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bmatcuk/doublestar/v4 v4.6.1 h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I= github.com/bmatcuk/doublestar/v4 v4.6.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= +github.com/bmatcuk/doublestar/v4 v4.7.1 h1:fdDeAqgT47acgwd9bd9HxJRDmc9UAmPpc+2m0CXv75Q= +github.com/bmatcuk/doublestar/v4 v4.7.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= @@ -78,11 +80,15 @@ github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUK github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= github.com/hashicorp/go-hclog v1.6.2 h1:NOtoftovWkDheyUM/8JW3QMiXyxJK3uHRK7wV04nD2I= github.com/hashicorp/go-hclog v1.6.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= +github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-plugin v1.6.0 h1:wgd4KxHJTVGGqWBq4QPB1i5BZNEx9BR8+OFmHDmTk8A= github.com/hashicorp/go-plugin v1.6.0/go.mod h1:lBS5MtSSBZk0SHc66KACcjjlU6WzEVP/8pwz68aMkCI= +github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= +github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= @@ -94,6 +100,8 @@ github.com/hashicorp/hc-install v0.6.4 h1:QLqlM56/+SIIGvGcfFiwMY3z5WGXT066suo/v9 github.com/hashicorp/hc-install v0.6.4/go.mod h1:05LWLy8TD842OtgcfBbOT0WMoInBMUSHjmDx10zuBIA= github.com/hashicorp/hc-install v0.7.0 h1:Uu9edVqjKQxxuD28mR5TikkKDd/p55S8vzPC1659aBk= github.com/hashicorp/hc-install v0.7.0/go.mod h1:ELmmzZlGnEcqoUMKUuykHaPCIR1sYLYX+KSggWSKZuA= +github.com/hashicorp/hc-install v0.9.0 h1:2dIk8LcvANwtv3QZLckxcjyF5w8KVtiMxu6G6eLhghE= +github.com/hashicorp/hc-install v0.9.0/go.mod h1:+6vOP+mf3tuGgMApVYtmsnDoKWMDcFXeTxCACYZ8SFg= github.com/hashicorp/hcl/v2 v2.20.0 h1:l++cRs/5jQOiKVvqXZm/P1ZEfVXJmvLS9WSVxkaeTb4= github.com/hashicorp/hcl/v2 v2.20.0/go.mod h1:WmcD/Ym72MDOOx5F62Ly+leloeu6H7m0pG7VBiU6pQk= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= @@ -106,8 +114,12 @@ github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRy github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7orfb5Ltvec= github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A= +github.com/hashicorp/terraform-json v0.23.0 h1:sniCkExU4iKtTADReHzACkk8fnpQXrdD2xoR+lppBkI= +github.com/hashicorp/terraform-json v0.23.0/go.mod h1:MHdXbBAbSg0GvzuWazEGKAn/cyNfIB7mN6y7KJN6y2c= github.com/hashicorp/terraform-plugin-docs v0.19.4 h1:G3Bgo7J22OMtegIgn8Cd/CaSeyEljqjH3G39w28JK4c= github.com/hashicorp/terraform-plugin-docs v0.19.4/go.mod h1:4pLASsatTmRynVzsjEhbXZ6s7xBlUw/2Kt0zfrq8HxA= +github.com/hashicorp/terraform-plugin-docs v0.20.0 h1:ox7rm1FN0dVZaJBUzkVVh10R1r3+FeMQWL0QopQ9d7o= +github.com/hashicorp/terraform-plugin-docs v0.20.0/go.mod h1:A/+4SVMdAkQYtIBtaxV0H7AU862TxVZk/hhKaMDQB6Y= github.com/hashicorp/terraform-plugin-framework v1.9.0 h1:caLcDoxiRucNi2hk8+j3kJwkKfvHznubyFsJMWfZqKU= github.com/hashicorp/terraform-plugin-framework v1.9.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= @@ -182,6 +194,8 @@ github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSg github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= @@ -211,10 +225,14 @@ github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/yuin/goldmark v1.7.1 h1:3bajkSilaCbjdKVsKdZjZCLBNPL9pYzrCakKaf4U49U= github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= +github.com/yuin/goldmark v1.7.7 h1:5m9rrB1sW3JUMToKFQfb+FGt1U7r57IHu5GrYrG2nqU= +github.com/yuin/goldmark v1.7.7/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc= github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0= github.com/zclconf/go-cty v1.14.4 h1:uXXczd9QDGsgu0i/QFR/hzI5NYCHLf6NQw/atrbnhq8= github.com/zclconf/go-cty v1.14.4/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +github.com/zclconf/go-cty v1.15.0 h1:tTCRWxsexYUmtt/wVxgDClUe+uQusuI443uL6e+5sXQ= +github.com/zclconf/go-cty v1.15.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= go.abhg.dev/goldmark/frontmatter v0.2.0 h1:P8kPG0YkL12+aYk2yU3xHv4tcXzeVnN+gU0tJ5JnxRw= go.abhg.dev/goldmark/frontmatter v0.2.0/go.mod h1:XqrEkZuM57djk7zrlRUB02x8I5J0px76YjkOzhB4YlU= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -222,6 +240,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4= golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= @@ -229,6 +249,8 @@ golang.org/x/mod v0.16.0 h1:QX4fJ0Rr5cPQCF7O9lh9Se4pmwfwskqZfq5moyldzic= golang.org/x/mod v0.16.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= +golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= @@ -236,6 +258,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs= golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -256,6 +280,8 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= @@ -269,11 +295,15 @@ golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.16.0 h1:GO788SKMRunPIBCXiQyo2AaexLstOrVhuAL5YwsckQM= golang.org/x/tools v0.16.0/go.mod h1:kYVVN6I1mBNoB1OX+noeBjbRk4IUEPa7JJ+TJMEooJ0= +golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA= +golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= From 69d62b651ce6cb4d5bab33f9bd0c50fa71b40db7 Mon Sep 17 00:00:00 2001 From: a-atri Date: Thu, 21 Nov 2024 13:58:28 +0530 Subject: [PATCH 2/5] Added helpful links section in the terraform V1.4.0 guide --- docs/guides/1.4.0-upgrade-guide.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/guides/1.4.0-upgrade-guide.md b/docs/guides/1.4.0-upgrade-guide.md index f9b74592..2ed60e02 100644 --- a/docs/guides/1.4.0-upgrade-guide.md +++ b/docs/guides/1.4.0-upgrade-guide.md @@ -110,4 +110,10 @@ resource "couchbase-capella_network_peer" "new_network_peer" { } } ``` -For more information, see the [network peer examples](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/network_peer). \ No newline at end of file +For more information, see the [network peer examples](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/network_peer). + +### Helpful Links + +- [Getting Started with the Terraform Provider](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/blob/master/examples/getting_started) +- [Capella V4 Management APIs](https://docs.couchbase.com/cloud/management-api-reference/index.html) +- [Specific Examples in the examples folder](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/blob/master/examples) \ No newline at end of file From b0b7160280b3ccc21bd89a67facc40c8a76cf761 Mon Sep 17 00:00:00 2001 From: Anupam Atri <154301946+a-atri@users.noreply.github.com> Date: Mon, 25 Nov 2024 13:04:24 +0530 Subject: [PATCH 3/5] Update docs/guides/1.4.0-upgrade-guide.md based on the feedback received by the docs team Co-authored-by: Simon Dew <39966290+simon-dew@users.noreply.github.com> --- docs/guides/1.4.0-upgrade-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/1.4.0-upgrade-guide.md b/docs/guides/1.4.0-upgrade-guide.md index 2ed60e02..c44805de 100644 --- a/docs/guides/1.4.0-upgrade-guide.md +++ b/docs/guides/1.4.0-upgrade-guide.md @@ -18,7 +18,7 @@ New features in 1.4.0 ## Flush Bucket -Use the new `flush` resource to flush a bucket +Use the new `flush` resource to flush a bucket. ``` output "new_bucket" { value = couchbase-capella_bucket.new_bucket From 0485bd8c1da20f2fe49c16d1187afef77eb974ee Mon Sep 17 00:00:00 2001 From: Anupam Atri <154301946+a-atri@users.noreply.github.com> Date: Mon, 25 Nov 2024 13:08:27 +0530 Subject: [PATCH 4/5] Adding suggested changes from the code review Co-authored-by: Priya Rajagopal Co-authored-by: Simon Dew <39966290+simon-dew@users.noreply.github.com> --- docs/guides/1.4.0-upgrade-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/1.4.0-upgrade-guide.md b/docs/guides/1.4.0-upgrade-guide.md index c44805de..67fe1058 100644 --- a/docs/guides/1.4.0-upgrade-guide.md +++ b/docs/guides/1.4.0-upgrade-guide.md @@ -63,7 +63,7 @@ For more information, see the [flush bucket examples](https://github.com/couchba ## Azure Network Peer -Use the `azure_network_peer_command` data source to get an AWS command for configuring VPC endpoint. +Use the `azure_network_peer_command` data source to get an Azure CLI command for configuring VNET endpoint. ``` output "azure_network_peer_command" { value = data.couchbase-capella_azure_network_peer_command.azure_network_peer_command @@ -81,7 +81,7 @@ data "couchbase-capella_azure_network_peer_command" "azure_network_peer_command" vnet_peering_service_principal = var.vnet_peering_service_principal } ``` -Create a new Azure network peer, use the `network-peer` resource as follows: +To create a new Azure network peer, use the `network-peer` resource as follows: ``` output "new_network_peer" { value = couchbase-capella_network_peer.new_network_peer From ed4a87634baf1c97ef5b8668dee3a8fb592e80bb Mon Sep 17 00:00:00 2001 From: a-atri Date: Wed, 27 Nov 2024 18:11:18 +0530 Subject: [PATCH 5/5] Added feature description in the index.md file --- docs/index.md | 72 ++++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/docs/index.md b/docs/index.md index 9ecf431b..6a2141fe 100644 --- a/docs/index.md +++ b/docs/index.md @@ -222,87 +222,89 @@ To get started, see the [Provider Example Configs](https://github.com/couchbasec The [buckets](https://docs.couchbase.com/cloud/clusters/data-service/about-buckets-scopes-collections.html#buckets) is the top-level storage container for data in a Capella database. -* [Configure App Services](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/appservice) +* [Configure App Services](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/appservice): - Create and Manage App Services in Capella. + App Services synchronizes data between the Couchbase Capella database and your apps running on mobile applications. -* [Configure Bucket Backup & Restore](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/backup) +* [Configure Bucket Backup & Restore](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/backup): + A bucket is the fundamental space for storing data in Couchbase Capella. Create and Manage Backups in Capella. -* [Create & Manage Scopes](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/bucket/scopes) +* [Create & Manage Scopes](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/bucket/scopes): - Create and Manage Scopes within a bucket. + Create and Manage Scopes within a bucket. A scope is a mechanism for the grouping of multiple collections. -* [Create & Manage Collections](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/bucket/collections) +* [Create & Manage Collections](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/bucket/collections): - Create and Manage Collections within a bucket. + Create and Manage Collections within a bucket. A collection is a data container for related documents. -* [Configure Cluster On/Off Schedule](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/cluster_onoff_schedule) +* [Configure Cluster On/Off Schedule](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/cluster_onoff_schedule): - Configure cluster on/off schedule. + The On/Off Schedule endpoint enables you to schedule when your provisioned database should turn on or off to save costs. -* [Turn Clusters On/Off On Demand](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/cluster_onoff_ondemand) +* [Turn Clusters On/Off On Demand](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/cluster_onoff_ondemand): - Turn Clusters on/off on demand. + Turning off your database only turns off the compute. All of your data, schema (buckets, scopes, and collections), and indexes remain, as well as your cluster configuration, including users and allow lists. + When you turn your provisioned database off, you will be charged the OFF amount for the database. -* [Turn App Service On/Off On Demand](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/app_service_onoff_ondemand) +* [Turn App Service On/Off On Demand](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/app_service_onoff_ondemand): - Turn App Services on/off on-demand. + You can turn the cluster and any linked app services on or off on demand using the [cluster API](https://docs.couchbase.com/cloud/management-api-reference/index.html#tag/clusters). -* [Import Sample Dataset Buckets](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/sample_bucket) +* [Import Sample Dataset Buckets](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/sample_bucket): - Import Sample Dataset Buckets. + The sampleBucket endpoint lets users easily create a bucket filled with sample data. This is a quick way for users to try out features and learn how things work with ready-to-use data. -* [Manage Storage Auto Expansion for Azure Clusters](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/cluster/azure) +* [Manage Storage Auto Expansion for Azure Clusters](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/cluster/azure): Manage Storage Auto-expansion for Azure Clusters. -* [Manage Audit Log Settings in Capella](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/audit_log_settings) - - Manage Audit Log Settings. +* [Manage Audit Log Settings in Capella](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/audit_log_settings): -* [Export Capella Audit Logs](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/audit_log_export) + Users can easily configure audit log support on Capella database. - Export Audit Logs. +* [Export Capella Audit Logs](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/audit_log_export): -* [Retrieve Audit Log Events for a Cluster](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/audit_logs_event_ids) - - Retrieve Audit Logs Events. + Users can export audit logs from cloud blob storage to an AWS S3 bucket. -* [Manage Network Peer](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/network_peer) +* [Retrieve Audit Log Events for a Cluster](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/audit_logs_event_ids): - Manage Network Peer + Users can retrieve audit logs from a pre-signed download URL. Logs are retained for 30 days. -* [Retrieve Specific Event](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/event) +* [Manage Network Peer](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/network_peer): + + Network Peering enables you to configure a secure private network connection between the Virtual Private Cloud (VPC) hosting your applications and the VPC of your Couchbase Capella database. + +* [Retrieve Specific Event](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/event): Retrieve Specific Event -* [Retrieve All Events](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/events) +* [Retrieve All Events](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/events): Retrieve All Events -* [Retrieve Private Endpoint Command for AWS](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/private_endpoint_command/AWS) +* [Retrieve Private Endpoint Command for AWS](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/private_endpoint_command/AWS): Retrieve Private Endpoint Command for AWS -* [Retrieve Private Endpoint Command for Azure](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/private_endpoint_command/Azure) +* [Retrieve Private Endpoint Command for Azure](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/private_endpoint_command/Azure): Retrieve Private Endpoint Command for Azure -* [Manage Private Endpoint Service](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/private_endpoint_service) +* [Manage Private Endpoint Service](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/private_endpoint_service): - Manage Private Endpoint Service + Access your Capella cluster from your cloud provider's private network. -* [Manage Private Endpoints](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/private_endpoints) +* [Manage Private Endpoints](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/private_endpoints): Manage Private Endpoints -* [Manage Azure Network Peer](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/network_peer) +* [Manage Azure Network Peer](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/network_peer): Manage Azure Network Peer -* [Manage Flush Bucket](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/flush_bucket) +* [Manage Flush Bucket](https://github.com/couchbasecloud/terraform-provider-couchbase-capella/tree/main/examples/flush_bucket): Manage Flush Bucket