New sample
This commit is contained in:
47
quickstart/101-azure-api-management-create/variables.tf
Normal file
47
quickstart/101-azure-api-management-create/variables.tf
Normal file
@ -0,0 +1,47 @@
|
||||
variable "resource_group_location" {
|
||||
default = "eastus"
|
||||
description = "Location for all resources."
|
||||
}
|
||||
|
||||
variable "resource_group_name_prefix" {
|
||||
default = "rg"
|
||||
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
|
||||
}
|
||||
|
||||
variable "publisher_email" {
|
||||
description = "The email address of the owner of the service"
|
||||
type = string
|
||||
validation {
|
||||
condition = length(var.publisher_email) > 0
|
||||
error_message = "The publisher_email must contain at least one character."
|
||||
}
|
||||
}
|
||||
|
||||
variable "publisher_name" {
|
||||
description = "The name of the owner of the service"
|
||||
type = string
|
||||
validation {
|
||||
condition = length(var.publisher_name) > 0
|
||||
error_message = "The publisher_name must contain at least one character."
|
||||
}
|
||||
}
|
||||
|
||||
variable "sku" {
|
||||
description = "The pricing tier of this API Management service"
|
||||
default = "Developer"
|
||||
type = string
|
||||
validation {
|
||||
condition = contains(["Developer", "Standard", "Premium"], var.sku)
|
||||
error_message = "The sku must be one of the following: Developer, Standard, Premium."
|
||||
}
|
||||
}
|
||||
|
||||
variable "sku_count" {
|
||||
description = "The instance size of this API Management service."
|
||||
default = 1
|
||||
type = number
|
||||
validation {
|
||||
condition = contains([1, 2], var.sku_count)
|
||||
error_message = "The sku_count must be one of the following: 1, 2."
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user