From 1e4e1f80668a5b5e6898aa119f47055608386be7 Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Fri, 15 Sep 2023 13:11:46 +0800 Subject: [PATCH 1/2] azurerm_postgresql_flexible_server - support new value 4193280 for storage_mb --- .../services/postgres/postgresql_flexible_server_resource.go | 2 +- .../postgres/postgresql_flexible_server_resource_test.go | 2 +- website/docs/r/postgresql_flexible_server.html.markdown | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/services/postgres/postgresql_flexible_server_resource.go b/internal/services/postgres/postgresql_flexible_server_resource.go index fc345581f7ec..28f6be42abcd 100644 --- a/internal/services/postgres/postgresql_flexible_server_resource.go +++ b/internal/services/postgres/postgresql_flexible_server_resource.go @@ -129,7 +129,7 @@ func resourcePostgresqlFlexibleServer() *pluginsdk.Resource { Type: pluginsdk.TypeInt, Optional: true, Computed: true, - ValidateFunc: validation.IntInSlice([]int{32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33553408}), + ValidateFunc: validation.IntInSlice([]int{32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4193280, 4194304, 8388608, 16777216, 33553408}), }, "version": { diff --git a/internal/services/postgres/postgresql_flexible_server_resource_test.go b/internal/services/postgres/postgresql_flexible_server_resource_test.go index 1275ae7ba1b9..fb80fd937e16 100644 --- a/internal/services/postgres/postgresql_flexible_server_resource_test.go +++ b/internal/services/postgres/postgresql_flexible_server_resource_test.go @@ -599,7 +599,7 @@ resource "azurerm_postgresql_flexible_server" "test" { administrator_password = "123wsxQAZ" version = "13" backup_retention_days = 10 - storage_mb = 65536 + storage_mb = 4193280 delegated_subnet_id = azurerm_subnet.test.id private_dns_zone_id = azurerm_private_dns_zone.test.id sku_name = "GP_Standard_D2s_v3" diff --git a/website/docs/r/postgresql_flexible_server.html.markdown b/website/docs/r/postgresql_flexible_server.html.markdown index 9995637376b7..be26995aaa06 100644 --- a/website/docs/r/postgresql_flexible_server.html.markdown +++ b/website/docs/r/postgresql_flexible_server.html.markdown @@ -132,7 +132,7 @@ The following arguments are supported: * `auto_grow_enabled` - (Optional) Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to `false`. -* `storage_mb` - (Optional) The max storage allowed for the PostgreSQL Flexible Server. Possible values are `32768`, `65536`, `131072`, `262144`, `524288`, `1048576`, `2097152`, `4194304`, `8388608`, `16777216` and `33553408`. +* `storage_mb` - (Optional) The max storage allowed for the PostgreSQL Flexible Server. Possible values are `32768`, `65536`, `131072`, `262144`, `524288`, `1048576`, `2097152`, `4193280`, `4194304`, `8388608`, `16777216` and `33553408`. * `tags` - (Optional) A mapping of tags which should be assigned to the PostgreSQL Flexible Server. From ddefc4ca8cafce2f6b9472225171d12e2cb59354 Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Fri, 15 Sep 2023 21:11:47 +0800 Subject: [PATCH 2/2] update code --- .../postgres/postgresql_flexible_server_resource_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/postgres/postgresql_flexible_server_resource_test.go b/internal/services/postgres/postgresql_flexible_server_resource_test.go index fb80fd937e16..1275ae7ba1b9 100644 --- a/internal/services/postgres/postgresql_flexible_server_resource_test.go +++ b/internal/services/postgres/postgresql_flexible_server_resource_test.go @@ -599,7 +599,7 @@ resource "azurerm_postgresql_flexible_server" "test" { administrator_password = "123wsxQAZ" version = "13" backup_retention_days = 10 - storage_mb = 4193280 + storage_mb = 65536 delegated_subnet_id = azurerm_subnet.test.id private_dns_zone_id = azurerm_private_dns_zone.test.id sku_name = "GP_Standard_D2s_v3"