Commit 834c9696 authored by admin's avatar admin
Browse files

环境代码变更

parent 9f8c2dc9
No related merge requests found
Showing with 38 additions and 44 deletions
+38 -44
variable "instance_type" {
type = list(string)
default = ["ecs.c6.large"]
description = "实例规格"
variable "instance_type"{
type = list(string)
default = ["ecs.t6-c1m2.large"]
description = "实例规格"
}
variable "key_pair" {
type = string
description = "密钥"
default = "yddpro"
variable "key_pair"{
type = string
description = "密钥"
default = "yddpro"
}
variable "allocate_public_ip" {
type = bool
description = "是否申请公网IP"
default = true
variable "allocate_public_ip"{
type = bool
description = "是否申请公网IP"
default = true
}
variable "instance_name" {
type = string
description = "实例名称"
default = "ydd.test"
variable "instance_name"{
type = string
description = "实例名称"
default = "ydd.test"
}
variable "target" {
type = number
default = 1
variable "target"{
type = number
default = 1
}
variable "vswitchs" {
type = list(object({
variable "vswitchs"{
type = list(object({
availability_zone = string
vswitch_id = string
security_groups = list(string)
image_id = string
}))
default = [
{
availability_zone = "cn-hangzhou-h"
vswitch_id = "vsw-bp15jwx4e0hbmfwgyyilc"
security_groups = ["sg-bp16fd1twy1062dmocgu"]
image_id = "centos_7_9_x64_20G_alibase_20230815.vhd"
}
]
default = [{"availability_zone":"cn-beijing-i","security_groups":["sg-2zeea0q11d7pfllpglm0"],"vswitch_id":"vsw-2zex0qldhj7pqrs0sfp9c","image_id":"centos_7_9_x64_20G_alibase_20230815.vhd"}]
}
variable "service_account_id" {
type = number
default = 21
variable "service_account_id"{
type = number
default = 21
}
variable "system_disk_type" {
type = string
description = "系统盘类型"
default = "cloud_efficiency"
variable "system_disk_type"{
type = string
description = "系统盘类型"
default = "cloud_efficiency"
}
variable "system_disk_size" {
type = number
description = "系统盘大小"
default = 40
variable "system_disk_size"{
type = number
description = "系统盘大小"
default = 40
}
variable "tags" {
type = map(string)
description = "实例标签"
default = {}
variable "tags"{
type = map(string)
description = "实例标签"
default = {"Platform":"YDD","ORDER_NO":"123102114575126000112","ENV":"DEV","Application":"混合云虚拟机","PlatformUser":"毕敏立"}
}
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