54 lines
		
	
	
		
			958 B
		
	
	
	
		
			HCL
		
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			958 B
		
	
	
	
		
			HCL
		
	
	
	
# 华为云提供商变量定义
 | 
						|
 | 
						|
variable "environment" {
 | 
						|
  description = "环境名称"
 | 
						|
  type        = string
 | 
						|
}
 | 
						|
 | 
						|
variable "project_name" {
 | 
						|
  description = "项目名称"
 | 
						|
  type        = string
 | 
						|
}
 | 
						|
 | 
						|
variable "owner" {
 | 
						|
  description = "项目所有者"
 | 
						|
  type        = string
 | 
						|
}
 | 
						|
 | 
						|
variable "vpc_cidr" {
 | 
						|
  description = "VPC CIDR 块"
 | 
						|
  type        = string
 | 
						|
}
 | 
						|
 | 
						|
variable "availability_zones" {
 | 
						|
  description = "可用区列表"
 | 
						|
  type        = list(string)
 | 
						|
}
 | 
						|
 | 
						|
variable "common_tags" {
 | 
						|
  description = "通用标签"
 | 
						|
  type        = map(string)
 | 
						|
}
 | 
						|
 | 
						|
variable "huawei_config" {
 | 
						|
  description = "华为云配置"
 | 
						|
  type = object({
 | 
						|
    access_key = string
 | 
						|
    secret_key = string
 | 
						|
    region     = string
 | 
						|
    project_id = string
 | 
						|
  })
 | 
						|
  sensitive = true
 | 
						|
}
 | 
						|
 | 
						|
variable "instance_count" {
 | 
						|
  description = "实例数量"
 | 
						|
  type        = number
 | 
						|
  default     = 1
 | 
						|
}
 | 
						|
 | 
						|
variable "instance_size" {
 | 
						|
  description = "实例规格"
 | 
						|
  type        = string
 | 
						|
  default     = "s6.small.1"
 | 
						|
} |