diff --git a/CHANGELOG.md b/CHANGELOG.md index 48e27b9..c227373 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,27 @@ +## 2.0.0 (XXXXXX XX, 202X) + +BREAKING CHANGES: + +* dependencies: updating to `v2.0.0` minimum of terraform. +* dependencies: updating to `v3.40.0` minimum of hashicorp/azurerm provider. + +ENHANCEMENTS: + +* The `sku.capacity` parameter changes the `string` type to `number` and is now an optional parameter. +* The `autoscale_configuration.min_capacity` parameter changes type `string` to `number`. +* The `autoscale_configuration.max_capacity` parameter changes type `string` to `number`. + +FEATURES: + +* **New Parameter**: + +BUG FIXES: + +DEPRECATIONS: + +* **Parameter**: + ## 1.2.0 (January 27, 2022) FEATURES: diff --git a/README.md b/README.md index 2608da9..ea31c57 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ The following parameters are supported: |location|The location/region where the Application Gateway is created.|`string`|n/a|yes| |tags|A mapping of tags to assign to the resource.|`map(string)`|`{}`|no| |sku|A mapping with the sku configuration of the application gateway.|`object({})`|n/a|yes| +|autoscale\_configuration|A mapping with the autoscale configuration of the application gateway.|`object({})`|`null`|no| |subnet\_id|The ID of the Subnet which the Application Gateway should be connected to.|`string`|n/a|yes| |waf\_configuration|A mapping with the waf configuration of the application gateway.|`object({})`|`{}`|no| |frontend\_ip\_configuration|A mapping the front ip configuration.|`object({})`|n/a|yes| diff --git a/variables.tf b/variables.tf index fa1ec92..4a58cc8 100644 --- a/variables.tf +++ b/variables.tf @@ -23,19 +23,19 @@ variable "sku" { type = object({ tier = string size = string - capacity = number + capacity = optional(number) }) description = "A mapping with the sku configuration of the application gateway." } -# variable "autoscale_configuration" { -# type = object({ -# min_capacity = number -# max_capacity = number -# }) -# default = null -# description = "A mapping with the autoscale configuration of the application gateway." -# } +variable "autoscale_configuration" { + type = object({ + min_capacity = number + max_capacity = number + }) + default = null + description = "A mapping with the autoscale configuration of the application gateway." +} variable "subnet_id" { type = string