68 lines
1.5 KiB
HCL
68 lines
1.5 KiB
HCL
# STACKIT Project
|
|
variable "stackit_project_id" {
|
|
description = "ID of the stackit Project"
|
|
type = string
|
|
}
|
|
# MongoDB Instance
|
|
variable "mongodb_instance_name" {
|
|
description = "name of the mongodb instance"
|
|
type = string
|
|
}
|
|
|
|
variable "mongodb_instance_acl" {
|
|
description = "access control list for mongodb"
|
|
type = list(string)
|
|
}
|
|
|
|
variable "mongodb_instance_backup_schedule" {
|
|
description = "backup schedule for mongodb as crontab expression"
|
|
type = string
|
|
}
|
|
|
|
variable "mongodb_instance_flavor" {
|
|
description = "resources for mongodb"
|
|
type = object({
|
|
cpu = number
|
|
ram = number
|
|
})
|
|
}
|
|
|
|
variable "mongodb_instance_options" {
|
|
description = "options for mongodb"
|
|
type = object({
|
|
type = string
|
|
})
|
|
}
|
|
|
|
variable "mongodb_instance_replicas" {
|
|
description = "number of replicas for mongodb"
|
|
type = number
|
|
}
|
|
|
|
variable "mongodb_instance_storage" {
|
|
description = "storage for mongodb"
|
|
type = object({
|
|
class = string
|
|
size = number
|
|
})
|
|
}
|
|
|
|
variable "mongodb_instance_version" {
|
|
description = "version of the mongodb instance"
|
|
type = string
|
|
}
|
|
|
|
# MongoDB User
|
|
variable "mongodb_user_name" {
|
|
description = "(optional) name of the user"
|
|
type = string
|
|
}
|
|
variable "mongodb_user_roles" {
|
|
description = "Database access levels for the user. Some of the possible values are: [read, readWrite, readWriteAnyDatabase]"
|
|
type = list(string)
|
|
}
|
|
|
|
variable "mongodb_user_database" {
|
|
description = "name of the database for user to gain access to."
|
|
type = string
|
|
}
|