pagopa / dx

Devex repository for shared tools and pipelines.
https://pagopa.github.io/dx/docs/
1 stars 0 forks source link

The "tier" variable should not be required on web apps modules #53

Open lucacavallaro opened 4 months ago

lucacavallaro commented 4 months ago

Issue

tier is required, but is only needed when app_service_plan_id is null

Affected modules

Current variable definition

variable "tier" {
  type        = string
  description = "Resource tiers depending on demanding workload. Allowed values are 'premium', 'standard', 'test'. Note, \"test\" does not support deployment slots."
  default     = "premium"

  validation {
    condition     = contains(["premium", "standard", "test"], var.tier)
    error_message = "Allowed values for \"tier\" are \"premium\", \"standard\", or \"test\". Note, \"test\" does not support deployment slots."
  }
}