fix 101-cosmos-db-autoscale example (#157)

This commit is contained in:
Dingjia Chen
2023-02-16 00:35:27 -06:00
committed by GitHub
parent 4d37eb18bf
commit 99e0a341a1
4 changed files with 25 additions and 7 deletions

View File

@ -1,35 +1,42 @@
variable "resource_group_name" {
variable "prefix" {
type = string
description = "Resource group name"
default = "cosmos-db-autoscale"
description = "Prefix of the resource name"
}
variable "location" {
type = string
default = "eastus"
description = "Resource group location"
}
variable "cosmosdb_account_name" {
type = string
default = "default-cosmosdb-user"
description = "Cosmos db account name"
}
variable "cosmosdb_account_location" {
type = string
default = "eastus"
description = "Cosmos db account location"
}
variable "cosmosdb_sqldb_name" {
type = string
default = "default-cosmosdb-sqldb"
description = "value"
}
variable "sql_container_name" {
type = string
default = "default-sql-container"
description = "SQL API container name."
}
variable "max_throughput" {
type = number
default = 4000
description = "Cosmos db database max throughput"
validation {
condition = var.max_throughput >= 4000 && var.max_throughput <= 1000000