forked from alibaba/terraform-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alicloud.tf
45 lines (38 loc) · 818 Bytes
/
alicloud.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
variable "region" {
default = "cn-beijing"
}
variable "ecs_password" {
default = "Test12345"
}
variable "worker_count" {
default = "1"
}
variable "worker_count_format" {
default = "%03d"
}
variable "worker_ecs_type" {
default = "ecs.n1.small"
}
variable "short_name" {
default = "hi"
}
variable "internet_charge_type" {
default = "PayByTraffic"
}
variable "datacenter" {
default = "beijing"
}
provider "alicloud" {
region = "${var.region}"
}
module "worker-nodes" {
source = "./examples/ecs"
count = "${var.worker_count}"
count_format = "${var.worker_count_format}"
role = "worker"
datacenter = "${var.datacenter}"
ecs_type = "${var.worker_ecs_type}"
ecs_password = "${var.ecs_password}"
short_name = "${var.short_name}"
internet_charge_type = "${var.internet_charge_type}"
}