fischerX/infra/terraform/variables.tf

120 lines
2.4 KiB
HCL

variable "region" {
description = "The region where resources will be created"
type = string
default = "cn-hangzhou"
}
variable "access_key" {
description = "Alibaba Cloud Access Key ID"
type = string
sensitive = true
}
variable "secret_key" {
description = "Alibaba Cloud Secret Access Key"
type = string
sensitive = true
}
variable "vpc_name" {
description = "VPC name"
type = string
default = "fischerx-vpc"
}
variable "vpc_cidr" {
description = "VPC CIDR block"
type = string
default = "10.0.0.0/16"
}
variable "vswitch_cidrs" {
description = "VSwitch CIDR blocks"
type = list(string)
default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
}
variable "zone_ids" {
description = "Zone IDs"
type = list(string)
default = ["cn-hangzhou-i", "cn-hangzhou-j", "cn-hangzhou-k"]
}
variable "cluster_name" {
description = "ACK cluster name"
type = string
default = "fischerx-ack-cluster"
}
variable "worker_instance_types" {
description = "Worker node instance types"
type = list(string)
default = ["ecs.g6.large"]
}
variable "worker_number" {
description = "Number of worker nodes"
type = number
default = 3
}
variable "db_instance_name" {
description = "RDS instance name"
type = string
default = "fischerx-rds"
}
variable "db_name" {
description = "Database name"
type = string
default = "fischerx"
}
variable "db_username" {
description = "Database username"
type = string
default = "fischerx"
}
variable "db_password" {
description = "Database password"
type = string
sensitive = true
}
variable "db_instance_class" {
description = "RDS instance class"
type = string
default = "mysql.n2.medium.2c"
}
variable "redis_instance_name" {
description = "Redis instance name"
type = string
default = "fischerx-redis"
}
variable "redis_password" {
description = "Redis password"
type = string
sensitive = true
}
variable "redis_instance_class" {
description = "Redis instance class"
type = string
default = "redis.master.small.default"
}
variable "oss_bucket_name" {
description = "OSS bucket name"
type = string
default = "fischerx-oss"
}
variable "oss_bucket_acl" {
description = "OSS bucket ACL"
type = string
default = "private"
}