From 1a4740ceb1cc7f4b8c94d1b98180859188eefe3d Mon Sep 17 00:00:00 2001 From: Amol Vyavahare <70512235+edbamolvyavahare@users.noreply.github.com> Date: Mon, 21 Oct 2024 18:44:30 +0530 Subject: [PATCH] ci: Prepare for the 1.1.0 release (#595) * ci: Prepare for the 1.1.0 release * fix: updated changelog.md * fix: fixed review comments --------- Co-authored-by: PC-2NR0VQ3\wai.wong --- .wordlist-en-custom.txt | 1 + CHANGELOG.md | 15 ++ GNUmakefile | 2 +- README.md | 2 +- docs/data-sources/analytics_cluster.md | 11 ++ docs/data-sources/cluster.md | 20 +++ docs/data-sources/csp_tag.md | 93 ++++++++++++ docs/data-sources/faraway_replica.md | 14 ++ docs/data-sources/pgd.md | 10 +- docs/data-sources/region.md | 11 ++ docs/data-sources/tag.md | 62 ++++++++ docs/index.md | 5 +- docs/resources/analytics_cluster.md | 17 +++ docs/resources/aws_connection.md | 2 +- docs/resources/azure_connection.md | 2 +- docs/resources/cluster.md | 42 +++++- docs/resources/csp_tag.md | 134 ++++++++++++++++++ docs/resources/faraway_replica.md | 46 +++++- docs/resources/pgd.md | 92 +++++++++++- docs/resources/project.md | 31 +++- docs/resources/region.md | 29 +++- docs/resources/tag.md | 71 ++++++++++ .../biganimal_analytics_cluster/provider.tf | 2 +- .../biganimal_aws_connection/provider.tf | 2 +- .../biganimal_cluster/provider.tf | 2 +- .../biganimal_csp_tag/data-source.tf | 2 +- .../biganimal_faraway_replica/provider.tf | 2 +- .../data-sources/biganimal_pgd/provider.tf | 2 +- .../biganimal_projects/provider.tf | 2 +- .../data-sources/biganimal_region/provider.tf | 2 +- .../data-sources/biganimal_tag/data-source.tf | 2 +- .../aws/resource.tf | 2 +- .../biganimal_aws_connection/resource.tf | 2 +- .../biganimal_azure_connection/resource.tf | 2 +- .../biganimal_cluster/ha/resource.tf | 2 +- .../single_node/aws/resource.tf | 2 +- .../single_node/azure/resource.tf | 2 +- .../single_node/gcp/resource.tf | 2 +- .../resources/biganimal_csp_tag/resource.tf | 2 +- .../biganimal_faraway_replica/aws/resource.tf | 2 +- .../azure/resource.tf | 2 +- .../cluster_and_faraway_replica/resource.tf | 2 +- .../biganimal_faraway_replica/gcp/resource.tf | 2 +- .../biganimal_pgd/aws/data_group/resource.tf | 2 +- .../resource.tf | 2 +- .../azure/data_group/resource.tf | 2 +- .../resource.tf | 2 +- .../biganimal_pgd/gcp/data_group/resource.tf | 2 +- .../resource.tf | 2 +- .../resources/biganimal_project/resource.tf | 2 +- .../resources/biganimal_region/resource.tf | 2 +- examples/resources/biganimal_tag/resource.tf | 2 +- go.mod | 7 +- templates/resources/faraway_replica.md.tmpl | 2 +- 54 files changed, 715 insertions(+), 66 deletions(-) create mode 100644 docs/data-sources/csp_tag.md create mode 100644 docs/data-sources/tag.md create mode 100644 docs/resources/csp_tag.md create mode 100644 docs/resources/tag.md diff --git a/.wordlist-en-custom.txt b/.wordlist-en-custom.txt index fcde5932..678d8c97 100644 --- a/.wordlist-en-custom.txt +++ b/.wordlist-en-custom.txt @@ -2,6 +2,7 @@ BigAnimal BigAnimal's CIDR CSP +csp EDB GUC IAM diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d9be801..39fb6553 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +## v1.1.0 (October 21. 2024) +Features: +* New Resource and Data Source to manage tags: `biganimal_tag` +* New Resource and Data Source to manage csp tags: `biganimal_csp_tag` +* Support to assign tags in `biganimal_cluster`, `biganimal_analytics_cluster`, `biganimal_faraway_replica`, `biganimal_pgd`, `biganimal_projects` and `biganimal_region` resources +* Support for read-only connections in `biganimal_pgd` resources +* Support service_name in `biganimal_cluster` resources + +Enhancements: +* Updated authentication information in docs +* Updated AWS examples to use series 6 instance types by default + +Bug Fixes: +* Fixed cluster_architecture.name not computing when changing cluster_architecture.id in `biganimal_cluster` resources + ## v1.0.0 (August 07. 2024) Features: * Transparent Data Encryption (TDE) is now supported in `biganimal_cluster` and `biganimal_faraway_replica` resources diff --git a/GNUmakefile b/GNUmakefile index 14ad8d98..e34ecf32 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -4,7 +4,7 @@ HOSTNAME=registry.terraform.io NAMESPACE=EnterpriseDB NAME=biganimal BINARY=terraform-provider-${NAME} -VERSION=1.0.0 +VERSION=1.1.0 # Figure out the OS and ARCH of the # builder machine diff --git a/README.md b/README.md index 7c1d6821..f9e04663 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/docs/data-sources/analytics_cluster.md b/docs/data-sources/analytics_cluster.md index fbc7a9e2..17f56ed9 100644 --- a/docs/data-sources/analytics_cluster.md +++ b/docs/data-sources/analytics_cluster.md @@ -130,6 +130,7 @@ output "service_account_ids" { - `private_networking` (Boolean) Is private networking enabled. - `region` (String) Region to deploy the cluster. See [Supported regions](https://www.enterprisedb.com/docs/biganimal/latest/overview/03a_region_support/) for supported regions. - `resizing_pvc` (List of String) Resizing PVC. +- `tags` (Attributes Set) show tags associated with this resource (see [below for nested schema](#nestedatt--tags)) ### Nested Schema for `allowed_ip_ranges` @@ -164,3 +165,13 @@ Optional: - `create` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). - `delete` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. - `update` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). + + + +### Nested Schema for `tags` + +Read-Only: + +- `color` (String) +- `tag_id` (String) +- `tag_name` (String) diff --git a/docs/data-sources/cluster.md b/docs/data-sources/cluster.md index ee7e67de..205ace92 100644 --- a/docs/data-sources/cluster.md +++ b/docs/data-sources/cluster.md @@ -121,6 +121,14 @@ output "service_account_ids" { output "volume_snapshot_backup" { value = coalesce(data.biganimal_cluster.this.post_gis, false) } + +output "service_name" { + value = data.biganimal_cluster.this.service_name +} + +output "tags" { + value = data.biganimal_cluster.this.tags +} ``` @@ -148,6 +156,7 @@ output "volume_snapshot_backup" { - `read_only_connections` (Boolean) Is read only connection enabled. - `service_account_ids` (Set of String) A Google Cloud Service Account is used for logs. If you leave this blank, then you will be unable to access log details for this cluster. Required when cluster is deployed on BigAnimal's cloud account. - `superuser_access` (Boolean) Enable to grant superuser access to the edb_admin role. +- `tags` (Attributes Set) Show existing tags associated with this resource (see [below for nested schema](#nestedatt--tags)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `transparent_data_encryption` (Attributes) Transparent Data Encryption (TDE) key (see [below for nested schema](#nestedatt--transparent_data_encryption)) - `volume_snapshot_backup` (Boolean) Volume snapshot. @@ -173,6 +182,7 @@ output "volume_snapshot_backup" { - `region` (String) Region to deploy the cluster. See [Supported regions](https://www.enterprisedb.com/docs/biganimal/latest/overview/03a_region_support/) for supported regions. - `resizing_pvc` (List of String) Resizing PVC. - `ro_connection_uri` (String) Cluster read-only connection URI. Only available for high availability clusters. +- `service_name` (String) Cluster connection service name. - `storage` (Attributes) Storage. (see [below for nested schema](#nestedatt--storage)) - `transparent_data_encryption_action` (String) Transparent data encryption action. @@ -232,6 +242,16 @@ Required: - `value` (String) GUC value. + +### Nested Schema for `tags` + +Read-Only: + +- `color` (String) +- `tag_id` (String) +- `tag_name` (String) + + ### Nested Schema for `timeouts` diff --git a/docs/data-sources/csp_tag.md b/docs/data-sources/csp_tag.md new file mode 100644 index 00000000..b6ea34ac --- /dev/null +++ b/docs/data-sources/csp_tag.md @@ -0,0 +1,93 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "biganimal_csp_tag Data Source - terraform-provider-biganimal" +subcategory: "" +description: |- + CSP Tags will enable users to categorize and organize resources across types and improve the efficiency of resource retrieval +--- + +# biganimal_csp_tag (Data Source) + +CSP Tags will enable users to categorize and organize resources across types and improve the efficiency of resource retrieval + +## Example Usage + +```terraform +terraform { + required_providers { + biganimal = { + source = "EnterpriseDB/biganimal" + version = "1.1.0" + } + } +} + +data "biganimal_csp_tag" "this" { + project_id = "" # ex: "prj_12345" + cloud_provider_id = "" # ex: "aws" +} + +output "csp_tags" { + value = data.biganimal_csp_tag.this.csp_tags +} +``` + + +## Schema + +### Required + +- `cloud_provider_id` (String) +- `project_id` (String) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `add_tags` (Attributes List) (see [below for nested schema](#nestedatt--add_tags)) +- `csp_tags` (Attributes List) CSP Tags on cluster (see [below for nested schema](#nestedatt--csp_tags)) +- `delete_tags` (List of String) +- `edit_tags` (Attributes List) (see [below for nested schema](#nestedatt--edit_tags)) +- `id` (String) The ID of this resource. + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). +- `delete` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. +- `update` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). + + + +### Nested Schema for `add_tags` + +Read-Only: + +- `csp_tag_key` (String) +- `csp_tag_value` (String) + + + +### Nested Schema for `csp_tags` + +Read-Only: + +- `csp_tag_id` (String) +- `csp_tag_key` (String) +- `csp_tag_value` (String) +- `status` (String) + + + +### Nested Schema for `edit_tags` + +Read-Only: + +- `csp_tag_id` (String) +- `csp_tag_key` (String) +- `csp_tag_value` (String) +- `status` (String) diff --git a/docs/data-sources/faraway_replica.md b/docs/data-sources/faraway_replica.md index 865507d6..93fb186a 100644 --- a/docs/data-sources/faraway_replica.md +++ b/docs/data-sources/faraway_replica.md @@ -149,6 +149,7 @@ output "volume_snapshot_backup" { - `resizing_pvc` (List of String) Resizing PVC. - `source_cluster_id` (String) Source cluster ID. - `storage` (Attributes) Storage. (see [below for nested schema](#nestedatt--storage)) +- `tags` (Attributes Set) show tags associated with this resource (see [below for nested schema](#nestedatt--tags)) - `transparent_data_encryption_action` (String) Transparent data encryption action. - `volume_snapshot_backup` (Boolean) Enable to take a snapshot of the volume. @@ -216,3 +217,16 @@ Optional: - `iops` (String) IOPS for the selected volume. - `size` (String) Size of the volume. - `throughput` (String) Throughput. + + + +### Nested Schema for `tags` + +Required: + +- `tag_name` (String) + +Read-Only: + +- `color` (String) +- `tag_id` (String) diff --git a/docs/data-sources/pgd.md b/docs/data-sources/pgd.md index 44df7cc9..9125dfac 100644 --- a/docs/data-sources/pgd.md +++ b/docs/data-sources/pgd.md @@ -33,10 +33,6 @@ output "data_groups" { output "witness_groups" { value = data.biganimal_pgd.this.witness_groups } - -output "ro_connection_uri" { - value = data.biganimal_cluster.this.ro_connection_uri -} ``` ## PGD Data Source Example @@ -78,7 +74,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } @@ -102,7 +98,6 @@ terraform { - `data_groups` (Attributes Set) Cluster data groups. (see [below for nested schema](#nestedatt--data_groups)) - `id` (String) The ID of this resource. - `witness_groups` (Attributes Set) (see [below for nested schema](#nestedatt--witness_groups)) -- `ro_connection_uri` (String) PGD Cluster read-only connection URI. Only available for high availability clusters. ### Nested Schema for `data_groups` @@ -129,11 +124,12 @@ Read-Only: - `pg_version` (Attributes) Postgres version. (see [below for nested schema](#nestedatt--data_groups--pg_version)) - `phase` (String) Current phase of the cluster group. - `private_networking` (Boolean) Is private networking enabled. +- `read_only_connections` (Boolean) Is read-only connections enabled. - `region` (Attributes) Region. (see [below for nested schema](#nestedatt--data_groups--region)) - `resizing_pvc` (Set of String) Resizing PVC. +- `ro_connection_uri` (Set of String) Read-only connection URI. - `service_account_ids` (Set of String) A Google Cloud Service Account is used for logs. If you leave this blank, then you will be unable to access log details for this cluster. Required when cluster is deployed on BigAnimal's cloud account. - `storage` (Attributes) Storage. (see [below for nested schema](#nestedatt--data_groups--storage)) -- `read_only_connections` (Boolean) Is Read-only Connections/workloads enabled. ### Nested Schema for `data_groups.allowed_ip_ranges` diff --git a/docs/data-sources/region.md b/docs/data-sources/region.md index 3381b088..a9e40d9b 100644 --- a/docs/data-sources/region.md +++ b/docs/data-sources/region.md @@ -52,6 +52,7 @@ output "cloud_provider_id" { - `id` (String) Datasource ID. - `regions` (Attributes List) Region information. (see [below for nested schema](#nestedatt--regions)) +- `tags` (Attributes Set) show tags associated with this resource (see [below for nested schema](#nestedatt--tags)) ### Nested Schema for `regions` @@ -62,3 +63,13 @@ Read-Only: - `name` (String) Region name of the region. - `region_id` (String) Region ID of the region. - `status` (String) Region status of the region. + + + +### Nested Schema for `tags` + +Read-Only: + +- `color` (String) +- `tag_id` (String) +- `tag_name` (String) diff --git a/docs/data-sources/tag.md b/docs/data-sources/tag.md new file mode 100644 index 00000000..c9b3e3e1 --- /dev/null +++ b/docs/data-sources/tag.md @@ -0,0 +1,62 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "biganimal_tag Data Source - terraform-provider-biganimal" +subcategory: "" +description: |- + Tags will enable users to categorize and organize resources across types and improve the efficiency of resource retrieval +--- + +# biganimal_tag (Data Source) + +Tags will enable users to categorize and organize resources across types and improve the efficiency of resource retrieval + +## Example Usage + +```terraform +terraform { + required_providers { + biganimal = { + source = "EnterpriseDB/biganimal" + version = "1.1.0" + } + } +} + +data "biganimal_tag" "this" { + tag_id = "tag-id" +} + +output "tag_name" { + value = data.biganimal_tag.this.tag_name +} + +output "color" { + value = data.biganimal_tag.this.color +} +``` + + +## Schema + +### Required + +- `tag_id` (String) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `color` (String) +- `id` (String) The ID of this resource. +- `tag_name` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). +- `delete` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. +- `update` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). diff --git a/docs/index.md b/docs/index.md index c99ed84b..990b708b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -22,9 +22,6 @@ see [Getting started with the BigAnimal free trial.](https://www.enterprisedb.co ```terraform # Configure the BigAnimal Provider provider "biganimal" { - // ba_access_key: This can also be set as an environment variable. If it is set both here and - // in an environment variable then the access key set in the environment variable - // will take priority and be used ba_access_key = "" } # Manage the resources @@ -40,3 +37,5 @@ Credentials can be provided by using the `BA_ACCESS_KEY` environment variables. ### Optional - `ba_access_key` (String) BigAnimal Access Key +- `ba_api_uri` (String) BigAnimal API URL +- `ba_bearer_token` (String) BigAnimal Bearer Token diff --git a/docs/resources/analytics_cluster.md b/docs/resources/analytics_cluster.md index 018c2a1d..f9e284bc 100644 --- a/docs/resources/analytics_cluster.md +++ b/docs/resources/analytics_cluster.md @@ -36,6 +36,7 @@ The analytics cluster resource is used to manage BigAnimal analytics clusters. - `pe_allowed_principal_ids` (Set of String) Cloud provider subscription/account ID, need to be specified when cluster is deployed on BigAnimal's cloud account. - `private_networking` (Boolean) Is private networking enabled. - `service_account_ids` (Set of String) A Google Cloud Service Account is used for logs. If you leave this blank, then you will be unable to access log details for this cluster. Required when cluster is deployed on BigAnimal's cloud account. +- `tags` (Attributes Set) Assign existing tags or create tags to assign to this resource (see [below for nested schema](#nestedatt--tags)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only @@ -75,6 +76,22 @@ Optional: - `start_time` (String) Start time. "hh:mm", for example: "23:59". + +### Nested Schema for `tags` + +Required: + +- `tag_name` (String) + +Optional: + +- `color` (String) + +Read-Only: + +- `tag_id` (String) + + ### Nested Schema for `timeouts` diff --git a/docs/resources/aws_connection.md b/docs/resources/aws_connection.md index 5e1f8798..56d4cc79 100644 --- a/docs/resources/aws_connection.md +++ b/docs/resources/aws_connection.md @@ -19,7 +19,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/docs/resources/azure_connection.md b/docs/resources/azure_connection.md index 8d9979fe..466104d4 100644 --- a/docs/resources/azure_connection.md +++ b/docs/resources/azure_connection.md @@ -19,7 +19,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/docs/resources/cluster.md b/docs/resources/cluster.md index c5811b9f..17d5ed7e 100644 --- a/docs/resources/cluster.md +++ b/docs/resources/cluster.md @@ -13,7 +13,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" @@ -113,6 +113,16 @@ resource "biganimal_cluster" "single_node_cluster" { # ] } + #tags = [ + # { + # tag_name = "" + # color = "blue" + # }, + # { + # tag_name = "" + # }, + #] + # pe_allowed_principal_ids = [ # # ex: 123456789012 # ] @@ -138,7 +148,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" @@ -237,6 +247,16 @@ resource "biganimal_cluster" "ha_cluster" { # ] } + #tags = [ + # { + # tag_name = "" + # color = "blue" + # }, + # { + # tag_name = "" + # }, + #] + # transparent_data_encryption = { # key_id = # } @@ -292,6 +312,7 @@ output "faraway_replica_ids" { - `read_only_connections` (Boolean) Is read only connection enabled. - `service_account_ids` (Set of String) A Google Cloud Service Account is used for logs. If you leave this blank, then you will be unable to access log details for this cluster. Required when cluster is deployed on BigAnimal's cloud account. - `superuser_access` (Boolean) Enable to grant superuser access to the edb_admin role. +- `tags` (Attributes Set) Assign existing tags or create tags to assign to this resource (see [below for nested schema](#nestedatt--tags)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `transparent_data_encryption` (Attributes) Transparent Data Encryption (TDE) key (see [below for nested schema](#nestedatt--transparent_data_encryption)) - `volume_snapshot_backup` (Boolean) Enable to take a snapshot of the volume. @@ -311,6 +332,7 @@ output "faraway_replica_ids" { - `phase` (String) Current phase of the cluster. - `resizing_pvc` (List of String) Resizing PVC. - `ro_connection_uri` (String) Cluster read-only connection URI. Only available for high availability clusters. +- `service_name` (String) Cluster connection service name. - `transparent_data_encryption_action` (String) Transparent data encryption action. @@ -397,6 +419,22 @@ Required: - `value` (String) GUC value. + +### Nested Schema for `tags` + +Required: + +- `tag_name` (String) + +Optional: + +- `color` (String) + +Read-Only: + +- `tag_id` (String) + + ### Nested Schema for `timeouts` diff --git a/docs/resources/csp_tag.md b/docs/resources/csp_tag.md new file mode 100644 index 00000000..c919ee83 --- /dev/null +++ b/docs/resources/csp_tag.md @@ -0,0 +1,134 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "biganimal_csp_tag Resource - terraform-provider-biganimal" +subcategory: "" +description: |- + CSP Tags will enable users to categorize and organize resources across types and improve the efficiency of resource retrieval +--- + +# biganimal_csp_tag (Resource) + +CSP Tags will enable users to categorize and organize resources across types and improve the efficiency of resource retrieval + +## Example Usage + +```terraform +terraform { + required_providers { + biganimal = { + source = "EnterpriseDB/biganimal" + version = "1.1.0" + } + random = { + source = "hashicorp/random" + version = "3.6.0" + } + } +} + +resource "biganimal_csp_tag" "this" { + project_id = "" # ex: "prj_12345" + cloud_provider_id = "" # ex cloud-provider-id values ["bah:aws", "bah:azure", "bah:gcp", "aws", "azure", "gcp"] + + add_tags = [ + #{ + # csp_tag_key = "" # ex: "key" + # csp_tag_value = "" # ex: "value" + #}, + #{ + # csp_tag_key = "" + # csp_tag_value = "" + #}, + ] + + delete_tags = [ + #"", # ex: "id" + #"", + ] + + edit_tags = [ + #{ + # csp_tag_id = "" # ex: "id" + # csp_tag_key = "" # ex: "key" + # csp_tag_value = "" # ex: "value" + # status = "OK" + #}, + #{ + # csp_tag_id = "" + # csp_tag_key = "" + # csp_tag_value = "" + # status = "OK" + #}, + ] +} +``` + + +## Schema + +### Required + +- `add_tags` (Attributes List) (see [below for nested schema](#nestedatt--add_tags)) +- `cloud_provider_id` (String) +- `delete_tags` (List of String) +- `edit_tags` (Attributes List) (see [below for nested schema](#nestedatt--edit_tags)) +- `project_id` (String) + +### Optional + +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `csp_tags` (Attributes List) (see [below for nested schema](#nestedatt--csp_tags)) +- `id` (String) The ID of this resource. + + +### Nested Schema for `add_tags` + +Required: + +- `csp_tag_key` (String) +- `csp_tag_value` (String) + + + +### Nested Schema for `edit_tags` + +Required: + +- `csp_tag_id` (String) +- `csp_tag_key` (String) +- `csp_tag_value` (String) +- `status` (String) + + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). +- `delete` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. +- `update` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). + + + +### Nested Schema for `csp_tags` + +Read-Only: + +- `csp_tag_id` (String) +- `csp_tag_key` (String) +- `csp_tag_value` (String) +- `status` (String) + +## Import + +Import is supported using the following syntax: + +```shell +# terraform import biganimal_cluster. / +# example cloud provider id values bah:aws, bah:azure, bah:gcp, aws, azure, gcp +terraform import biganimal_csp_tag.this prj_deadbeef01234567/aws +``` diff --git a/docs/resources/faraway_replica.md b/docs/resources/faraway_replica.md index 551a19e4..fb7685e1 100644 --- a/docs/resources/faraway_replica.md +++ b/docs/resources/faraway_replica.md @@ -14,7 +14,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" @@ -92,7 +92,7 @@ resource "biganimal_faraway_replica" "faraway_replica" { backup_retention_period = "8d" csp_auth = false - instance_type = "aws:c6i.large" + instance_type = "azure:Standard_D2s_v3" // only following pg_config parameters are configurable for faraway replica // max_connections, max_locks_per_transaction, max_prepared_transactions, max_wal_senders, max_worker_processes. @@ -114,10 +114,17 @@ resource "biganimal_faraway_replica" "faraway_replica" { volume_properties = "P1" size = "4 Gi" } - private_networking = false region = "centralindia" + #tags { + # tag_name = "" + # color = "blue" + #} + #tags { + # tag_name = "" + #} + # transparent_data_encryption = { # key_id = # } @@ -147,6 +154,7 @@ resource "biganimal_faraway_replica" "faraway_replica" { - `private_networking` (Boolean) Is private networking enabled. - `project_id` (String) BigAnimal Project ID. - `service_account_ids` (Set of String) A Google Cloud Service Account is used for logs. If you leave this blank, then you will be unable to access log details for this cluster. Required when cluster is deployed on BigAnimal's cloud account. +- `tags` (Attributes Set) Assign existing tags or create tags to assign to this resource (see [below for nested schema](#nestedatt--tags)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `transparent_data_encryption` (Attributes) Transparent Data Encryption (TDE) key (see [below for nested schema](#nestedatt--transparent_data_encryption)) - `volume_snapshot_backup` (Boolean) Enable to take a snapshot of the volume. @@ -202,6 +210,22 @@ Required: - `value` (String) GUC value. + +### Nested Schema for `tags` + +Required: + +- `tag_name` (String) + +Optional: + +- `color` (String) + +Read-Only: + +- `tag_id` (String) + + ### Nested Schema for `timeouts` @@ -228,8 +252,20 @@ Read-Only: ### Nested Schema for `cluster_architecture` +Required: + +- `id` (String) Cluster architecture ID. +- `nodes` (Number) Node count. + Read-Only: -- `id` (String) Cluster architecture ID. For example, "single" or "ha".For Extreme High Availability clusters, please use the [biganimal_pgd](https://registry.terraform.io/providers/EnterpriseDB/biganimal/latest/docs/resources/pgd) resource. - `name` (String) Name. -- `nodes` (Number) Node count. + +## Import + +Import is supported using the following syntax: + +```shell +# terraform import biganimal_faraway_replica. / +terraform import biganimal_faraway_replica.faraway_replica prj_deadbeef01234567/p-abcd123456 +``` diff --git a/docs/resources/pgd.md b/docs/resources/pgd.md index fbf96352..c2041e7c 100644 --- a/docs/resources/pgd.md +++ b/docs/resources/pgd.md @@ -10,7 +10,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" @@ -40,6 +40,15 @@ resource "biganimal_pgd" "pgd_cluster" { project_id = var.project_id password = resource.random_password.password.result pause = false + #tags = [ + # { + # tag_name = "" + # color = "blue" + # }, + # { + # tag_name = "" + # }, + #] data_groups = [ { allowed_ip_ranges = [ @@ -94,6 +103,8 @@ resource "biganimal_pgd" "pgd_cluster" { start_day = 1 start_time = "13:00" } + read_only_connections = false + # pe_allowed_principal_ids = [ # # ex: "9334e5e6-7f47-aE61-5A4F-ee067daeEf4A" # ] @@ -113,7 +124,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" @@ -143,6 +154,15 @@ resource "biganimal_pgd" "pgd_cluster" { project_id = var.project_id password = resource.random_password.password.result pause = false + #tags = [ + # { + # tag_name = "" + # color = "blue" + # }, + # { + # tag_name = "" + # }, + #] data_groups = [ { allowed_ip_ranges = [ @@ -288,7 +308,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" @@ -318,6 +338,15 @@ resource "biganimal_pgd" "pgd_cluster" { project_id = var.project_id password = resource.random_password.password.result pause = false + #tags = [ + # { + # tag_name = "" + # color = "blue" + # }, + # { + # tag_name = "" + # }, + #] data_groups = [ { allowed_ip_ranges = [ @@ -372,6 +401,8 @@ resource "biganimal_pgd" "pgd_cluster" { start_day = 6 start_time = "13:00" } + read_only_connections = false + # pe_allowed_principal_ids = [ # # ex: 123456789012 # ] @@ -391,7 +422,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" @@ -421,6 +452,15 @@ resource "biganimal_pgd" "pgd_cluster" { project_id = var.project_id password = resource.random_password.password.result pause = false + #tags = [ + # { + # tag_name = "" + # color = "blue" + # }, + # { + # tag_name = "" + # }, + #] data_groups = [ { allowed_ip_ranges = [ @@ -566,7 +606,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" @@ -596,6 +636,15 @@ resource "biganimal_pgd" "pgd_cluster" { project_id = var.project_id password = resource.random_password.password.result pause = false + #tags = [ + # { + # tag_name = "" + # color = "blue" + # }, + # { + # tag_name = "" + # }, + #] data_groups = [ { allowed_ip_ranges = [ @@ -650,6 +699,8 @@ resource "biganimal_pgd" "pgd_cluster" { start_day = 6 start_time = "13:00" } + read_only_connections = false + # pe_allowed_principal_ids = [ # # ex: "development-data-123456" # ] @@ -673,7 +724,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" @@ -703,6 +754,15 @@ resource "biganimal_pgd" "pgd_cluster" { project_id = var.project_id password = resource.random_password.password.result pause = false + #tags = [ + # { + # tag_name = "" + # color = "blue" + # }, + # { + # tag_name = "" + # }, + #] data_groups = [ { allowed_ip_ranges = [ @@ -864,6 +924,7 @@ output "password" { - `most_recent` (Boolean) Show the most recent cluster when there are multiple clusters with the same name - `pause` (Boolean) Pause cluster. If true it will put the cluster on pause and set the phase as paused, if false it will resume the cluster and set the phase as healthy. Pausing a cluster allows you to save on compute costs without losing data or cluster configuration settings. While paused, clusters aren't upgraded or patched, but changes are applied when the cluster resumes. Pausing a Postgres Distributed(PGD) cluster shuts down all cluster nodes - `project_id` (String) BigAnimal Project ID. +- `tags` (Attributes Set) Assign existing tags or create tags to assign to this resource (see [below for nested schema](#nestedatt--tags)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `witness_groups` (Attributes List) (see [below for nested schema](#nestedatt--witness_groups)) @@ -895,6 +956,7 @@ Optional: - `allowed_ip_ranges` (Attributes Set) Allowed IP ranges. (see [below for nested schema](#nestedatt--data_groups--allowed_ip_ranges)) - `cluster_type` (String) Type of the Specified Cluster - `pe_allowed_principal_ids` (Set of String) Cloud provider subscription/account ID, need to be specified when cluster is deployed on BigAnimal's cloud account. +- `read_only_connections` (Boolean) Is read-only connections enabled. - `service_account_ids` (Set of String) A Google Cloud Service Account is used for logs. If you leave this blank, then you will be unable to access log details for this cluster. Required when cluster is deployed on BigAnimal's cloud account. Read-Only: @@ -907,7 +969,7 @@ Read-Only: - `metrics_url` (String) The URL to find the metrics of this cluster. - `phase` (String) Current phase of the data group. - `resizing_pvc` (Set of String) Resizing PVC. -- `ro_connection_uri` (String) Cluster read-only connection URI. Only available for high availability clusters. +- `ro_connection_uri` (String) Cluster read-only connection URI. ### Nested Schema for `data_groups.cloud_provider` @@ -1007,6 +1069,22 @@ Required: + +### Nested Schema for `tags` + +Required: + +- `tag_name` (String) + +Optional: + +- `color` (String) + +Read-Only: + +- `tag_id` (String) + + ### Nested Schema for `timeouts` diff --git a/docs/resources/project.md b/docs/resources/project.md index 99b3fd29..9d0248d3 100644 --- a/docs/resources/project.md +++ b/docs/resources/project.md @@ -20,7 +20,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" @@ -35,6 +35,15 @@ resource "random_pet" "project_name" { resource "biganimal_project" "this" { project_name = format("TF %s", title(random_pet.project_name.id)) + #tags = [ + # { + # tag_name = "" + # color = "blue" + # }, + # { + # tag_name = "" + # }, + #] } output "project_name" { @@ -57,6 +66,10 @@ output "project" { - `project_name` (String) Project Name of the project. +### Optional + +- `tags` (Attributes Set) Assign existing tags or create tags to assign to this resource (see [below for nested schema](#nestedatt--tags)) + ### Read-Only - `cloud_providers` (Attributes Set) Enabled Cloud Providers. (see [below for nested schema](#nestedatt--cloud_providers)) @@ -65,6 +78,22 @@ output "project" { - `project_id` (String, Deprecated) Project ID of the project. - `user_count` (Number) User Count of the project. + +### Nested Schema for `tags` + +Required: + +- `tag_name` (String) + +Optional: + +- `color` (String) + +Read-Only: + +- `tag_id` (String) + + ### Nested Schema for `cloud_providers` diff --git a/docs/resources/region.md b/docs/resources/region.md index b4fd6c78..9cf561c3 100644 --- a/docs/resources/region.md +++ b/docs/resources/region.md @@ -9,7 +9,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } @@ -23,6 +23,16 @@ resource "biganimal_region" "this" { cloud_provider = "aws" region_id = "eu-west-1" project_id = var.project_id + + # tags = [ + # { + # tag_name = "" + # color = "blue" + # }, + # { + # tag_name = "" + # }, + # ] } output "region_status" { @@ -50,6 +60,7 @@ output "region_continent" { ### Optional - `status` (String) Region status of the region. For example, "ACTIVE", "INACTIVE", or "SUSPENDED". +- `tags` (Attributes Set) Assign existing tags or create tags to assign to this resource (see [below for nested schema](#nestedatt--tags)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only @@ -58,6 +69,22 @@ output "region_continent" { - `id` (String) Resource ID of the region. - `name` (String) Region name of the region. For example, "Germany West Central" or "EU West 1". + +### Nested Schema for `tags` + +Required: + +- `tag_name` (String) + +Optional: + +- `color` (String) + +Read-Only: + +- `tag_id` (String) + + ### Nested Schema for `timeouts` diff --git a/docs/resources/tag.md b/docs/resources/tag.md new file mode 100644 index 00000000..12469757 --- /dev/null +++ b/docs/resources/tag.md @@ -0,0 +1,71 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "biganimal_tag Resource - terraform-provider-biganimal" +subcategory: "" +description: |- + Tags will enable users to categorize and organize resources across types and improve the efficiency of resource retrieval +--- + +# biganimal_tag (Resource) + +Tags will enable users to categorize and organize resources across types and improve the efficiency of resource retrieval + +## Example Usage + +```terraform +terraform { + required_providers { + biganimal = { + source = "EnterpriseDB/biganimal" + version = "1.1.0" + } + random = { + source = "hashicorp/random" + version = "3.6.0" + } + } +} + +resource "biganimal_tag" "tag" { + tag_name = "tag-name" + // The default colors to choose from are: + // magenta, red, orange, yellow, green, teal, blue, indigo, purple and grey + // you can also use a custom hex color code e.g. #e34545 + color = "blue" +} +``` + + +## Schema + +### Required + +- `tag_name` (String) + +### Optional + +- `color` (String) +- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) + +### Read-Only + +- `id` (String) The ID of this resource. +- `tag_id` (String) + + +### Nested Schema for `timeouts` + +Optional: + +- `create` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). +- `delete` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. +- `update` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). + +## Import + +Import is supported using the following syntax: + +```shell +# terraform import biganimal_tag. +terraform import biganimal_tag.tag abcdefgh-abcd-abcd-abcd-abcdefghijkl +``` diff --git a/examples/data-sources/biganimal_analytics_cluster/provider.tf b/examples/data-sources/biganimal_analytics_cluster/provider.tf index 572fa3c5..34104ddb 100644 --- a/examples/data-sources/biganimal_analytics_cluster/provider.tf +++ b/examples/data-sources/biganimal_analytics_cluster/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/data-sources/biganimal_aws_connection/provider.tf b/examples/data-sources/biganimal_aws_connection/provider.tf index 572fa3c5..34104ddb 100644 --- a/examples/data-sources/biganimal_aws_connection/provider.tf +++ b/examples/data-sources/biganimal_aws_connection/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/data-sources/biganimal_cluster/provider.tf b/examples/data-sources/biganimal_cluster/provider.tf index 572fa3c5..34104ddb 100644 --- a/examples/data-sources/biganimal_cluster/provider.tf +++ b/examples/data-sources/biganimal_cluster/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/data-sources/biganimal_csp_tag/data-source.tf b/examples/data-sources/biganimal_csp_tag/data-source.tf index 31de93fd..346e9250 100644 --- a/examples/data-sources/biganimal_csp_tag/data-source.tf +++ b/examples/data-sources/biganimal_csp_tag/data-source.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/data-sources/biganimal_faraway_replica/provider.tf b/examples/data-sources/biganimal_faraway_replica/provider.tf index 572fa3c5..34104ddb 100644 --- a/examples/data-sources/biganimal_faraway_replica/provider.tf +++ b/examples/data-sources/biganimal_faraway_replica/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/data-sources/biganimal_pgd/provider.tf b/examples/data-sources/biganimal_pgd/provider.tf index 572fa3c5..34104ddb 100644 --- a/examples/data-sources/biganimal_pgd/provider.tf +++ b/examples/data-sources/biganimal_pgd/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/data-sources/biganimal_projects/provider.tf b/examples/data-sources/biganimal_projects/provider.tf index 572fa3c5..34104ddb 100644 --- a/examples/data-sources/biganimal_projects/provider.tf +++ b/examples/data-sources/biganimal_projects/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/data-sources/biganimal_region/provider.tf b/examples/data-sources/biganimal_region/provider.tf index 572fa3c5..34104ddb 100644 --- a/examples/data-sources/biganimal_region/provider.tf +++ b/examples/data-sources/biganimal_region/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/data-sources/biganimal_tag/data-source.tf b/examples/data-sources/biganimal_tag/data-source.tf index d3daa85d..d07fd4c4 100644 --- a/examples/data-sources/biganimal_tag/data-source.tf +++ b/examples/data-sources/biganimal_tag/data-source.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/resources/biganimal_analytics_cluster/aws/resource.tf b/examples/resources/biganimal_analytics_cluster/aws/resource.tf index f8021f3d..fb6c9018 100644 --- a/examples/resources/biganimal_analytics_cluster/aws/resource.tf +++ b/examples/resources/biganimal_analytics_cluster/aws/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_aws_connection/resource.tf b/examples/resources/biganimal_aws_connection/resource.tf index f6fe12a6..36282472 100644 --- a/examples/resources/biganimal_aws_connection/resource.tf +++ b/examples/resources/biganimal_aws_connection/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/resources/biganimal_azure_connection/resource.tf b/examples/resources/biganimal_azure_connection/resource.tf index bf50471a..3febdc8b 100644 --- a/examples/resources/biganimal_azure_connection/resource.tf +++ b/examples/resources/biganimal_azure_connection/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/resources/biganimal_cluster/ha/resource.tf b/examples/resources/biganimal_cluster/ha/resource.tf index c11a2f9c..92f08571 100644 --- a/examples/resources/biganimal_cluster/ha/resource.tf +++ b/examples/resources/biganimal_cluster/ha/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_cluster/single_node/aws/resource.tf b/examples/resources/biganimal_cluster/single_node/aws/resource.tf index 3b4a7a09..aa101c79 100644 --- a/examples/resources/biganimal_cluster/single_node/aws/resource.tf +++ b/examples/resources/biganimal_cluster/single_node/aws/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_cluster/single_node/azure/resource.tf b/examples/resources/biganimal_cluster/single_node/azure/resource.tf index 8e808bfd..52c754f0 100644 --- a/examples/resources/biganimal_cluster/single_node/azure/resource.tf +++ b/examples/resources/biganimal_cluster/single_node/azure/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_cluster/single_node/gcp/resource.tf b/examples/resources/biganimal_cluster/single_node/gcp/resource.tf index e4ace2d6..7e8a812e 100644 --- a/examples/resources/biganimal_cluster/single_node/gcp/resource.tf +++ b/examples/resources/biganimal_cluster/single_node/gcp/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_csp_tag/resource.tf b/examples/resources/biganimal_csp_tag/resource.tf index d641f0a4..39a435ee 100644 --- a/examples/resources/biganimal_csp_tag/resource.tf +++ b/examples/resources/biganimal_csp_tag/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_faraway_replica/aws/resource.tf b/examples/resources/biganimal_faraway_replica/aws/resource.tf index 23fa4bf0..6934c881 100644 --- a/examples/resources/biganimal_faraway_replica/aws/resource.tf +++ b/examples/resources/biganimal_faraway_replica/aws/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_faraway_replica/azure/resource.tf b/examples/resources/biganimal_faraway_replica/azure/resource.tf index 266f1555..8c4e0138 100644 --- a/examples/resources/biganimal_faraway_replica/azure/resource.tf +++ b/examples/resources/biganimal_faraway_replica/azure/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_faraway_replica/cluster_and_faraway_replica/resource.tf b/examples/resources/biganimal_faraway_replica/cluster_and_faraway_replica/resource.tf index 16b6b3e0..adf73895 100644 --- a/examples/resources/biganimal_faraway_replica/cluster_and_faraway_replica/resource.tf +++ b/examples/resources/biganimal_faraway_replica/cluster_and_faraway_replica/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_faraway_replica/gcp/resource.tf b/examples/resources/biganimal_faraway_replica/gcp/resource.tf index 825a7e85..d2595cb6 100644 --- a/examples/resources/biganimal_faraway_replica/gcp/resource.tf +++ b/examples/resources/biganimal_faraway_replica/gcp/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/aws/data_group/resource.tf b/examples/resources/biganimal_pgd/aws/data_group/resource.tf index f8834075..1497811d 100644 --- a/examples/resources/biganimal_pgd/aws/data_group/resource.tf +++ b/examples/resources/biganimal_pgd/aws/data_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/aws/data_groups_with_witness_group/resource.tf b/examples/resources/biganimal_pgd/aws/data_groups_with_witness_group/resource.tf index 20df343e..2be3f525 100644 --- a/examples/resources/biganimal_pgd/aws/data_groups_with_witness_group/resource.tf +++ b/examples/resources/biganimal_pgd/aws/data_groups_with_witness_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/azure/data_group/resource.tf b/examples/resources/biganimal_pgd/azure/data_group/resource.tf index 939079ec..4f567722 100644 --- a/examples/resources/biganimal_pgd/azure/data_group/resource.tf +++ b/examples/resources/biganimal_pgd/azure/data_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/azure/data_groups_with_witness_group/resource.tf b/examples/resources/biganimal_pgd/azure/data_groups_with_witness_group/resource.tf index ccd0c0ab..e9316984 100644 --- a/examples/resources/biganimal_pgd/azure/data_groups_with_witness_group/resource.tf +++ b/examples/resources/biganimal_pgd/azure/data_groups_with_witness_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/gcp/data_group/resource.tf b/examples/resources/biganimal_pgd/gcp/data_group/resource.tf index 3d87ea68..929dec1b 100644 --- a/examples/resources/biganimal_pgd/gcp/data_group/resource.tf +++ b/examples/resources/biganimal_pgd/gcp/data_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/gcp/data_groups_with_witness_group/resource.tf b/examples/resources/biganimal_pgd/gcp/data_groups_with_witness_group/resource.tf index 9631ad78..76968d34 100644 --- a/examples/resources/biganimal_pgd/gcp/data_groups_with_witness_group/resource.tf +++ b/examples/resources/biganimal_pgd/gcp/data_groups_with_witness_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_project/resource.tf b/examples/resources/biganimal_project/resource.tf index 9d5c523e..89c7071a 100644 --- a/examples/resources/biganimal_project/resource.tf +++ b/examples/resources/biganimal_project/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_region/resource.tf b/examples/resources/biganimal_region/resource.tf index 916ee7bf..ef40d712 100644 --- a/examples/resources/biganimal_region/resource.tf +++ b/examples/resources/biganimal_region/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } } } diff --git a/examples/resources/biganimal_tag/resource.tf b/examples/resources/biganimal_tag/resource.tf index 5ca63334..389d7357 100644 --- a/examples/resources/biganimal_tag/resource.tf +++ b/examples/resources/biganimal_tag/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "1.0.0" + version = "1.1.0" } random = { source = "hashicorp/random" diff --git a/go.mod b/go.mod index 8279c43c..0d6faf47 100644 --- a/go.mod +++ b/go.mod @@ -17,16 +17,12 @@ require ( github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 github.com/hashicorp/terraform-plugin-testing v1.4.0 github.com/joho/godotenv v1.5.1 - github.com/kr/pretty v0.3.1 github.com/mitchellh/mapstructure v1.5.0 github.com/onsi/gomega v1.27.8 gotest.tools/v3 v3.5.0 ) -require ( - github.com/kr/text v0.2.0 // indirect - github.com/rogpeppe/go-internal v1.11.0 // indirect -) +require github.com/rogpeppe/go-internal v1.11.0 // indirect require ( github.com/Masterminds/goutils v1.1.1 // indirect @@ -60,6 +56,7 @@ require ( github.com/hashicorp/yamux v0.1.1 // indirect github.com/huandu/xstrings v1.3.2 // indirect github.com/imdario/mergo v0.3.15 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.19 // indirect github.com/mitchellh/cli v1.1.5 // indirect diff --git a/templates/resources/faraway_replica.md.tmpl b/templates/resources/faraway_replica.md.tmpl index 1b6b1dc5..49cfa1a7 100644 --- a/templates/resources/faraway_replica.md.tmpl +++ b/templates/resources/faraway_replica.md.tmpl @@ -22,5 +22,5 @@ That's why both the cluster and the faraway replica in this example are running Import is supported using the following syntax: -{{ printf "{{codefile \"shell\" %q}}" .ImportFile }} +{{ codefile "shell" .ImportFile }} {{- end }}