Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
eos-test
29cf33-aliyun-wordpress
Commits
06af2784
Commit
06af2784
authored
1 year ago
by
admin
Browse files
Options
Download
Email Patches
Plain Diff
环境代码变更
parent
38925961
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
variables.tf
+55
-85
variables.tf
with
55 additions
and
85 deletions
+55
-85
variables.tf
+
55
-
85
View file @
06af2784
variable
"cpu"
{
type
=
number
description
=
"CPU核心数"
default
=
2
variable
"cpu"
{
type
=
number
description
=
"CPU核心数"
default
=
2
}
variable
"memory"
{
type
=
number
description
=
"内存大小"
default
=
4
variable
"memory"
{
type
=
number
description
=
"内存大小"
default
=
4
}
variable
"service_account_id"
{
type
=
number
default
=
2
variable
"service_account_id"
{
type
=
number
default
=
2
1
}
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
=
"wordpress"
variable
"instance_name"
{
type
=
string
description
=
"实例名称"
default
=
"wordpress"
}
variable
"instance_number"
{
type
=
number
description
=
"实例数量"
default
=
2
variable
"instance_number"
{
type
=
number
description
=
"实例数量"
default
=
2
}
variable
"tags"
{
type
=
map
(
string
)
description
=
"实例标签"
default
=
{}
variable
"tags"
{
type
=
map
(
string
)
description
=
"实例标签"
default
=
{}
}
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
"need_backup"
{
type
=
bool
description
=
"需要备份"
default
=
true
variable
"need_backup"
{
type
=
bool
description
=
"需要备份"
default
=
true
}
variable
"env_id"
{
type
=
string
description
=
"用户环境id"
variable
"env_id"
{
type
=
string
description
=
"用户环境id"
default
=
"uhajjo1a"
}
variable
"need_load"
{
type
=
bool
description
=
"需要导入备份"
default
=
true
variable
"need_load"
{
type
=
bool
description
=
"需要导入备份"
default
=
true
}
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-j"
vswitch_id
=
"vsw-bp1u2pgjqov85kn5ii0wz"
security_groups
=
[
"sg-bp16fd1twy1062dmocgu"
]
image_id
=
"m-bp1enrmppxwhlri43rd8"
},
{
availability_zone
=
"cn-hangzhou-i"
vswitch_id
=
"vsw-bp1c80k5iuvv8pqnv4j6b"
security_groups
=
[
"sg-bp16fd1twy1062dmocgu"
]
image_id
=
"m-bp1enrmppxwhlri43rd8"
},
{
availability_zone
=
"cn-hangzhou-j"
vswitch_id
=
"vsw-bp1kwdeuw54dehjzmg9jm"
security_groups
=
[
"sg-bp1dlrlw9omoq4r97j0f"
]
image_id
=
"m-bp1enrmppxwhlri43rd8"
},
{
availability_zone
=
"cn-hangzhou-k"
vswitch_id
=
"vsw-bp1ancu5ujklokvh58xp3"
security_groups
=
[
"sg-bp1dlrlw9omoq4r97j0f"
]
image_id
=
"m-bp1enrmppxwhlri43rd8"
},
{
availability_zone
=
"cn-hangzhou-h"
vswitch_id
=
"vsw-bp15jwx4e0hbmfwgyyilc"
security_groups
=
[
"sg-bp16fd1twy1062dmocgu"
]
image_id
=
"m-bp1enrmppxwhlri43rd8"
}
]
default
=
[{
"availability_zone"
:
"cn-hangzhou-j"
,
"security_groups"
:
[
"sg-bp16fd1twy1062dmocgu"
],
"vswitch_id"
:
"vsw-bp1u2pgjqov85kn5ii0wz"
,
"image_id"
:
"m-bp1enrmppxwhlri43rd8"
},{
"availability_zone"
:
"cn-hangzhou-i"
,
"security_groups"
:
[
"sg-bp16fd1twy1062dmocgu"
],
"vswitch_id"
:
"vsw-bp1c80k5iuvv8pqnv4j6b"
,
"image_id"
:
"m-bp1enrmppxwhlri43rd8"
},{
"availability_zone"
:
"cn-hangzhou-j"
,
"security_groups"
:
[
"sg-bp1dlrlw9omoq4r97j0f"
],
"vswitch_id"
:
"vsw-bp1kwdeuw54dehjzmg9jm"
,
"image_id"
:
"m-bp1enrmppxwhlri43rd8"
},{
"availability_zone"
:
"cn-hangzhou-k"
,
"security_groups"
:
[
"sg-bp1dlrlw9omoq4r97j0f"
],
"vswitch_id"
:
"vsw-bp1ancu5ujklokvh58xp3"
,
"image_id"
:
"m-bp1enrmppxwhlri43rd8"
},{
"availability_zone"
:
"cn-hangzhou-h"
,
"security_groups"
:
[
"sg-bp16fd1twy1062dmocgu"
],
"vswitch_id"
:
"vsw-bp15jwx4e0hbmfwgyyilc"
,
"image_id"
:
"m-bp1enrmppxwhlri43rd8"
}]
}
#4./c 8G
variable
"spot_types"
{
type
=
list
(
string
)
default
=
[
"ecs.c7.xlarge"
,
"ecs.u1-c1m2.xlarge"
,
"ecs.c6.xlarge"
,
"ecs.c5.xlarge"
]
variable
"spot_types"
{
type
=
list
(
string
)
default
=
[
"ecs.c7.xlarge"
,
"ecs.u1-c1m2.xlarge"
,
"ecs.c6.xlarge"
,
"ecs.c5.xlarge"
]
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets