Commit ecd76115 authored by admin's avatar admin
Browse files

环境代码变更

parent 62236eda
Showing with 29 additions and 35 deletions
+29 -35
variable "service_account_id" {
type = string
default = 44
variable "service_account_id"{
type = string
default = "44"
}
variable "name" {
type = string
default = "huawei-spot-instance"
variable "name"{
type = string
default = "huawei-spot-instance"
}
variable "description" {
type = string
default = "华为云spot实例"
variable "description"{
type = string
default = "华为云spot实例"
}
variable "target" {
type = number
default = 1
variable "target"{
type = number
default = 1
}
variable "cpu" {
type = number
default = 2
variable "cpu"{
type = number
default = 2
}
variable "memory" {
type = number
default = 4
variable "memory"{
type = number
default = 4
}
variable "subnets" {
type = list(object({
variable "subnets"{
type = list(object({
security_groups = list(string)
subnet_id = string
availability_zone = string
image_id = string
}))
default = [
{
security_groups = ["aaf049e5-daad-477a-a412-93a6c61d8d5d"]
subnet_id = "6efcff51-6b52-4d7b-ab5d-681b2f4d2608"
availability_zone = "cn-east-3a"
image_id = "51a76dc4-0a0c-4e7c-bb01-d9dbaabe1441"
}
]
default = [{"availability_zone":"cn-east-3a","security_groups":["aaf049e5-daad-477a-a412-93a6c61d8d5d"],"subnet_id":"6efcff51-6b52-4d7b-ab5d-681b2f4d2608","image_id":"51a76dc4-0a0c-4e7c-bb01-d9dbaabe1441"}]
}
variable "allocate_public_ip" {
type = bool
default = true
variable "allocate_public_ip"{
type = bool
default = true
}
variable "internet_max_bandwidth_out"{
type = number
default = 100
}
variable "internet_max_bandwidth_out" {
type = number
default = 100
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment