Skip to content

Commit

Permalink
fix: Storage postgres replica parameter (#384)
Browse files Browse the repository at this point in the history
* fix storage postgres replica

* pre-commit

* pre-commit docs
  • Loading branch information
re-sh-cloud-arch authored Dec 4, 2024
1 parent a88c6d9 commit 9162242
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions postgres_flexible_server_replica/01_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ resource "azurerm_postgresql_flexible_server" "this" {
# private_dns_zobe_id will be required when setting a delegated_subnet_id
private_dns_zone_id = var.private_endpoint_enabled ? var.private_dns_zone_id : null

sku_name = var.sku_name

sku_name = var.sku_name
storage_mb = var.storage_mb
source_server_id = var.source_server_id

dynamic "high_availability" {
Expand Down
6 changes: 5 additions & 1 deletion postgres_flexible_server_replica/04_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ variable "sku_name" {
description = "The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3)."
}


variable "storage_mb" {
type = number
description = "The max storage allowed for the PostgreSQL Flexible Server. Possible values are 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, and 33554432."
default = null
}


variable "zone" {
Expand Down
1 change: 1 addition & 0 deletions postgres_flexible_server_replica/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ No modules.
| <a name="input_sku_name"></a> [sku\_name](#input\_sku\_name) | The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier + name pattern (e.g. B\_Standard\_B1ms, GP\_Standard\_D2s\_v3, MO\_Standard\_E4s\_v3). | `string` | n/a | yes |
| <a name="input_source_server_id"></a> [source\_server\_id](#input\_source\_server\_id) | (Required) Id of the source server to be replicated | `string` | n/a | yes |
| <a name="input_standby_availability_zone"></a> [standby\_availability\_zone](#input\_standby\_availability\_zone) | (Optional) Specifies the Availability Zone in which the standby Flexible Server should be located. | `number` | `null` | no |
| <a name="input_storage_mb"></a> [storage\_mb](#input\_storage\_mb) | The max storage allowed for the PostgreSQL Flexible Server. Possible values are 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, and 33554432. | `number` | `null` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | n/a | `map(any)` | n/a | yes |
| <a name="input_zone"></a> [zone](#input\_zone) | (Optional) Specifies the Availability Zone in which the PostgreSQL Flexible Server should be located. | `number` | `null` | no |
Expand Down

0 comments on commit 9162242

Please sign in to comment.