diff --git a/CHANGELOG.md b/CHANGELOG.md index 945a60bc..d846c4cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## v0.7.1 (February 07. 2024) +Bug Fixes: +* Fixed pg config to only use user custom config values in plan and not include default config values +* Small bug fixes on create/update operation for `biganimal_pgd` and `biganimal_cluster` resources + +Enhancements: +* Updated default storage size from 4 Gi to 32 Gi in examples for `biganimal_pgd` resources + ## v0.7.0 (January 12. 2024) Features: * Pgvector support for `biganimal_cluster` resources diff --git a/GNUmakefile b/GNUmakefile index c4f2f447..22983f76 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -4,7 +4,7 @@ HOSTNAME=registry.terraform.io NAMESPACE=EnterpriseDB NAME=biganimal BINARY=terraform-provider-${NAME} -VERSION=0.7.0 +VERSION=0.7.1 # Figure out the OS and ARCH of the # builder machine diff --git a/README.md b/README.md index 7e712ab5..b232588c 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } } } diff --git a/docs/data-sources/pgd.md b/docs/data-sources/pgd.md index 93e87801..29bcb032 100644 --- a/docs/data-sources/pgd.md +++ b/docs/data-sources/pgd.md @@ -74,7 +74,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } } } diff --git a/docs/resources/aws_connection.md b/docs/resources/aws_connection.md index 1f107dfa..f4bf80d3 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/docs/resources/azure_connection.md b/docs/resources/azure_connection.md index 29ee579d..0791427d 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/docs/resources/cluster.md b/docs/resources/cluster.md index 5d8b2861..f4ee13e5 100644 --- a/docs/resources/cluster.md +++ b/docs/resources/cluster.md @@ -13,7 +13,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -125,7 +125,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/docs/resources/faraway_replica.md b/docs/resources/faraway_replica.md index 4c5a3b29..095c546d 100644 --- a/docs/resources/faraway_replica.md +++ b/docs/resources/faraway_replica.md @@ -9,7 +9,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -102,7 +102,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/docs/resources/pgd.md b/docs/resources/pgd.md index 56a8d5fd..52830b01 100644 --- a/docs/resources/pgd.md +++ b/docs/resources/pgd.md @@ -10,7 +10,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -73,7 +73,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "azurepremiumstorage" volume_properties = "P2" - size = "8 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -109,7 +109,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -172,7 +172,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "azurepremiumstorage" volume_properties = "P2" - size = "8 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -226,7 +226,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "azurepremiumstorage" volume_properties = "P2" - size = "8 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -277,7 +277,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -340,7 +340,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "azurepremiumstorage" volume_properties = "P2" - size = "8 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -379,7 +379,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -442,7 +442,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "azurepremiumstorage" volume_properties = "P2" - size = "8 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -499,7 +499,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "azurepremiumstorage" volume_properties = "P2" - size = "8 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -553,7 +553,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -616,7 +616,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "gp3" volume_properties = "gp3" - size = "4 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -652,7 +652,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -715,7 +715,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "gp3" volume_properties = "gp3" - size = "4 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -769,7 +769,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "gp3" volume_properties = "gp3" - size = "4 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -820,7 +820,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -883,7 +883,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "gp3" volume_properties = "gp3" - size = "4 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -922,7 +922,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -985,7 +985,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "gp3" volume_properties = "gp3" - size = "4 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -1042,7 +1042,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "gp3" volume_properties = "gp3" - size = "4 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -1096,7 +1096,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -1159,7 +1159,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "pd-ssd" volume_properties = "pd-ssd" - size = "10 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -1195,7 +1195,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -1258,7 +1258,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "pd-ssd" volume_properties = "pd-ssd" - size = "10 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -1312,7 +1312,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "pd-ssd" volume_properties = "pd-ssd" - size = "10 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -1363,7 +1363,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -1426,7 +1426,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "pd-ssd" volume_properties = "pd-ssd" - size = "10 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -1469,7 +1469,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" @@ -1532,7 +1532,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "pd-ssd" volume_properties = "pd-ssd" - size = "10 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" @@ -1593,7 +1593,7 @@ resource "biganimal_pgd" "pgd_cluster" { storage = { volume_type = "pd-ssd" volume_properties = "pd-ssd" - size = "10 Gi" + size = "32 Gi" } pg_type = { pg_type_id = "epas" diff --git a/docs/resources/project.md b/docs/resources/project.md index 4d083ffe..3fab5e80 100644 --- a/docs/resources/project.md +++ b/docs/resources/project.md @@ -20,7 +20,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/docs/resources/region.md b/docs/resources/region.md index d6de94df..59cd8005 100644 --- a/docs/resources/region.md +++ b/docs/resources/region.md @@ -9,7 +9,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } } } diff --git a/examples/data-sources/biganimal_aws_connection/provider.tf b/examples/data-sources/biganimal_aws_connection/provider.tf index 7fc59ee7..9e4cd185 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/examples/data-sources/biganimal_cluster/provider.tf b/examples/data-sources/biganimal_cluster/provider.tf index 7fc59ee7..9e4cd185 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/examples/data-sources/biganimal_faraway_replica/provider.tf b/examples/data-sources/biganimal_faraway_replica/provider.tf index 7fc59ee7..9e4cd185 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/examples/data-sources/biganimal_pgd/provider.tf b/examples/data-sources/biganimal_pgd/provider.tf index 7fc59ee7..9e4cd185 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/examples/data-sources/biganimal_projects/provider.tf b/examples/data-sources/biganimal_projects/provider.tf index 7fc59ee7..9e4cd185 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/examples/data-sources/biganimal_region/provider.tf b/examples/data-sources/biganimal_region/provider.tf index 7fc59ee7..9e4cd185 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/examples/resources/biganimal_aws_connection/resource.tf b/examples/resources/biganimal_aws_connection/resource.tf index 8bac84e7..e012a691 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/examples/resources/biganimal_azure_connection/resource.tf b/examples/resources/biganimal_azure_connection/resource.tf index dd8c922f..63ef2094 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/examples/resources/biganimal_cluster/ha/resource.tf b/examples/resources/biganimal_cluster/ha/resource.tf index 6d8fb92d..d7c5c022 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 = "0.7.0" + version = "0.7.1" } 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 d2c23931..246fca8d 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 = "0.7.0" + version = "0.7.1" } 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 89ec3095..9465ced2 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 = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_cluster/single_node/bah_aws/resource.tf b/examples/resources/biganimal_cluster/single_node/bah_aws/resource.tf index bd14287b..2c1953a8 100644 --- a/examples/resources/biganimal_cluster/single_node/bah_aws/resource.tf +++ b/examples/resources/biganimal_cluster/single_node/bah_aws/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_cluster/single_node/bah_azure/resource.tf b/examples/resources/biganimal_cluster/single_node/bah_azure/resource.tf index cb96fa1f..2b3629d6 100644 --- a/examples/resources/biganimal_cluster/single_node/bah_azure/resource.tf +++ b/examples/resources/biganimal_cluster/single_node/bah_azure/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_cluster/single_node/bah_gcp/resource.tf b/examples/resources/biganimal_cluster/single_node/bah_gcp/resource.tf index 6e537471..d4a0165d 100644 --- a/examples/resources/biganimal_cluster/single_node/bah_gcp/resource.tf +++ b/examples/resources/biganimal_cluster/single_node/bah_gcp/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } } } diff --git a/examples/resources/biganimal_cluster/single_node/gcp/resource.tf b/examples/resources/biganimal_cluster/single_node/gcp/resource.tf index 1606a82a..1ec0bc97 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 = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_cluster/single_node/resource.tf b/examples/resources/biganimal_cluster/single_node/resource.tf index 89ec3095..9465ced2 100644 --- a/examples/resources/biganimal_cluster/single_node/resource.tf +++ b/examples/resources/biganimal_cluster/single_node/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } 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 0bd44df9..04c3ed5c 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 = "0.7.0" + version = "0.7.1" } 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 493550c6..b74700b3 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 = "0.7.0" + version = "0.7.1" } 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 fda49ce5..d74be634 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 = "0.7.0" + version = "0.7.1" } 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 fd3e7308..5ad4e1b5 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 = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_faraway_replica/resource.tf b/examples/resources/biganimal_faraway_replica/resource.tf index 0bd44df9..04c3ed5c 100644 --- a/examples/resources/biganimal_faraway_replica/resource.tf +++ b/examples/resources/biganimal_faraway_replica/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/aws/bah_data_group/resource.tf b/examples/resources/biganimal_pgd/aws/bah_data_group/resource.tf index dbf07bb5..0d9220a0 100644 --- a/examples/resources/biganimal_pgd/aws/bah_data_group/resource.tf +++ b/examples/resources/biganimal_pgd/aws/bah_data_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/aws/bah_data_groups_with_witness_group/resource.tf b/examples/resources/biganimal_pgd/aws/bah_data_groups_with_witness_group/resource.tf index aabe429e..4b390351 100644 --- a/examples/resources/biganimal_pgd/aws/bah_data_groups_with_witness_group/resource.tf +++ b/examples/resources/biganimal_pgd/aws/bah_data_groups_with_witness_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } 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 4318b852..5eb570ac 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 = "0.7.0" + version = "0.7.1" } 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 cb3df593..4ce41da2 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 = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/azure/bah_data_group/resource.tf b/examples/resources/biganimal_pgd/azure/bah_data_group/resource.tf index ed951650..bde3776d 100644 --- a/examples/resources/biganimal_pgd/azure/bah_data_group/resource.tf +++ b/examples/resources/biganimal_pgd/azure/bah_data_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/azure/bah_data_groups_with_witness_group/resource.tf b/examples/resources/biganimal_pgd/azure/bah_data_groups_with_witness_group/resource.tf index 07f9c606..c4e2fa15 100644 --- a/examples/resources/biganimal_pgd/azure/bah_data_groups_with_witness_group/resource.tf +++ b/examples/resources/biganimal_pgd/azure/bah_data_groups_with_witness_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } 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 fa6c2b8b..1c14033a 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 = "0.7.0" + version = "0.7.1" } 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 addb6128..ef4879d9 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 = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/gcp/bah_data_group/resource.tf b/examples/resources/biganimal_pgd/gcp/bah_data_group/resource.tf index 189d7991..01cf374c 100644 --- a/examples/resources/biganimal_pgd/gcp/bah_data_group/resource.tf +++ b/examples/resources/biganimal_pgd/gcp/bah_data_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_pgd/gcp/bah_data_groups_with_witness_group/resource.tf b/examples/resources/biganimal_pgd/gcp/bah_data_groups_with_witness_group/resource.tf index 84a58291..19ccda98 100644 --- a/examples/resources/biganimal_pgd/gcp/bah_data_groups_with_witness_group/resource.tf +++ b/examples/resources/biganimal_pgd/gcp/bah_data_groups_with_witness_group/resource.tf @@ -2,7 +2,7 @@ terraform { required_providers { biganimal = { source = "EnterpriseDB/biganimal" - version = "0.7.0" + version = "0.7.1" } 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 79d57dc5..8242d6ac 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 = "0.7.0" + version = "0.7.1" } 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 e3cd3a1b..936f4e3c 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 = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_project/resource.tf b/examples/resources/biganimal_project/resource.tf index 2cb525d3..a31b27ec 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 = "0.7.0" + version = "0.7.1" } random = { source = "hashicorp/random" diff --git a/examples/resources/biganimal_region/resource.tf b/examples/resources/biganimal_region/resource.tf index 88ecf25e..3c920545 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 = "0.7.0" + version = "0.7.1" } } } diff --git a/pkg/provider/resource_cluster.go b/pkg/provider/resource_cluster.go index df8c88f9..d94b0bfe 100644 --- a/pkg/provider/resource_cluster.go +++ b/pkg/provider/resource_cluster.go @@ -520,6 +520,11 @@ func (c *clusterResource) Read(ctx context.Context, req resource.ReadRequest, re return } + if state.Phase == nil || *state.Phase != models.PHASE_HEALTHY { + resp.Diagnostics.AddError("Cluster not ready please wait", "Cluster not ready for update operation please wait") + return + } + resp.Diagnostics.Append(resp.State.Set(ctx, state)...) } @@ -547,7 +552,12 @@ func (c *clusterResource) Update(ctx context.Context, req resource.UpdateRequest return } + // sleep after update operation as API can incorrectly respond with healthy state when checking the phase + // this is possibly a bug in the API + time.Sleep(20 * time.Second) + timeout, diagnostics := plan.Timeouts.Update(ctx, time.Minute*60) + resp.Diagnostics.Append(diagnostics...) if err := c.ensureClusterIsHealthy(ctx, plan, timeout); err != nil { if !appendDiagFromBAErr(err, &resp.Diagnostics) { diff --git a/pkg/provider/resource_pgd.go b/pkg/provider/resource_pgd.go index 100f01e7..3fc7eb62 100644 --- a/pkg/provider/resource_pgd.go +++ b/pkg/provider/resource_pgd.go @@ -809,6 +809,20 @@ func (p pgdResource) Read(ctx context.Context, req resource.ReadRequest, resp *r return } + for _, v := range state.DataGroups { + if v.Phase.ValueString() != models.PHASE_HEALTHY { + resp.Diagnostics.AddError("Cluster not ready please wait", "Cluster not ready for update operation please wait") + return + } + } + + for _, v := range state.WitnessGroups { + if v.Phase.ValueString() != models.PHASE_HEALTHY { + resp.Diagnostics.AddError("Cluster not ready please wait", "Cluster not ready for update operation please wait") + return + } + } + diags = resp.State.Set(ctx, &state) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { @@ -950,6 +964,10 @@ func (p pgdResource) Update(ctx context.Context, req resource.UpdateRequest, res return } + // sleep after update operation as API can incorrectly respond with healthy state when checking the phase + // this is possibly a bug in the API + time.Sleep(20 * time.Second) + plan.ID = plan.ClusterId // retry func