Skip to content

Commit

Permalink
azurerm_cosmosdb_postgresql_cluster - update the validation of sql_ve…
Browse files Browse the repository at this point in the history
…rsion and citus_version (#23476)

* azurerm_cosmosdb_postgresql_cluster - update the validation of sql_version and citus_version

* update code
  • Loading branch information
neil-yechenwei authored Oct 10, 2023
1 parent 0c2f21d commit 558fb18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ func (r CosmosDbPostgreSQLClusterResource) Arguments() map[string]*pluginsdk.Sch
"11.1",
"11.2",
"11.3",
"12.1",
}, false),
},

Expand Down Expand Up @@ -289,6 +290,7 @@ func (r CosmosDbPostgreSQLClusterResource) Arguments() map[string]*pluginsdk.Sch
"13",
"14",
"15",
"16",
}, false),
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ resource "azurerm_cosmosdb_postgresql_cluster" "test" {
coordinator_vcore_count = 4
node_count = 2
citus_version = "11.3"
citus_version = "12.1"
coordinator_public_ip_access_enabled = false
ha_enabled = true
coordinator_server_edition = "MemoryOptimized"
Expand All @@ -239,7 +239,7 @@ resource "azurerm_cosmosdb_postgresql_cluster" "test" {
node_public_ip_access_enabled = true
node_server_edition = "GeneralPurpose"
sql_version = "15"
sql_version = "16"
preferred_primary_zone = 2
node_storage_quota_in_mb = 262144
node_vcores = 4
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/cosmosdb_postgresql_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following arguments are supported:

* `node_count` - (Required) The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between `0` and `20` except `1`.

* `citus_version` - (Optional) The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `8.3`, `9.0`, `9.1`, `9.2`, `9.3`, `9.4`, `9.5`, `10.0`, `10.1`, `10.2`, `11.0`, `11.1`, `11.2` and `11.3`.
* `citus_version` - (Optional) The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `8.3`, `9.0`, `9.1`, `9.2`, `9.3`, `9.4`, `9.5`, `10.0`, `10.1`, `10.2`, `11.0`, `11.1`, `11.2`, `11.3` and `12.1`.

* `coordinator_public_ip_access_enabled` - (Optional) Is public access enabled on coordinator? Defaults to `true`.

Expand Down Expand Up @@ -77,7 +77,7 @@ The following arguments are supported:

* `source_resource_id` - (Optional) The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.

* `sql_version` - (Optional) The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are `11`, `12`, `13`, `14` and `15`.
* `sql_version` - (Optional) The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are `11`, `12`, `13`, `14`, `15` and `16`.

* `tags` - (Optional) A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.

Expand Down

0 comments on commit 558fb18

Please sign in to comment.