Skip to content

Commit

Permalink
Merge branch 'AZ-1336_zones' into 'master'
Browse files Browse the repository at this point in the history
AZ-1336: Add `zone_balancing_enabled` parameter

See merge request claranet/projects/cloud/azure/terraform/modules/app-service-plan!27
  • Loading branch information
Shr3ps committed Jan 26, 2024
2 parents 53a912c + 8ed10de commit af2d1c2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Unreleased

Added
* AZ-1336: Add `zone_balancing_enabled` parameter

# v6.3.0 - 2023-12-01

Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ module "app_service_plan" {
| stack | Project stack name | `string` | n/a | yes |
| use\_caf\_naming | Use the Azure CAF naming provider to generate default resource name. `custom_name` override this if set. Legacy default name is used if this is set to `false`. | `bool` | `true` | no |
| worker\_count | The number of Workers (instances) to be allocated. | `number` | `3` | no |
| zone\_balancing\_enabled | Should the Service Plan balance across Availability Zones in the region. | `bool` | `true` | no |

## Outputs

Expand Down
5 changes: 3 additions & 2 deletions resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ resource "azurerm_service_plan" "plan" {
location = var.location
resource_group_name = var.resource_group_name

os_type = var.os_type
sku_name = var.sku_name
os_type = var.os_type
sku_name = var.sku_name
zone_balancing_enabled = var.zone_balancing_enabled

worker_count = var.sku_name == "Y1" ? null : var.worker_count
maximum_elastic_worker_count = var.maximum_elastic_worker_count
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,9 @@ variable "per_site_scaling_enabled" {
type = bool
default = false
}

variable "zone_balancing_enabled" {
description = "Should the Service Plan balance across Availability Zones in the region."
type = bool
default = true
}

0 comments on commit af2d1c2

Please sign in to comment.