-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcluster_new.tf
67 lines (52 loc) · 1.44 KB
/
cluster_new.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
provider "ibm" {
region = "eu-de"
bluemix_api_key = "${var.bluemix_api_key}"
}
data "ibm_org" "orginst" {
org = "vkalangu@in.ibm.com"
}
data "ibm_account" "acc" {
org_guid = "${data.ibm_org.orginst.id}"
}
data "ibm_space" "space" {
org = "${data.ibm_org.orginst.org}"
space = "devGermany"
}
resource "ibm_container_cluster" "testacc_cluster" {
org_guid = "${data.ibm_org.orginst.id}"
space_guid = "${data.ibm_space.space.id}"
account_guid = "${data.ibm_account.acc.id}"
name = "vjtftestJun22_1"
datacenter = "ams03"
workers = [{
name = "vjtftestJun22_1-w1"
},
{
name = "vjtftestJun22_1-w2"
},
{
name = "vjtftestJun22_1-w3"
},
{
name = "vjtftestJun22_1-w4"
},
]
webhook= {
level="Normal",
type="slack",
url="https://hooks.slack.com/services/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"
}
machine_type = "u1c.2x4"
public_vlan_id = "${var.public_vlan_id}"
private_vlan_id = "${var.private_vlan_id}"
}
data "ibm_container_cluster_config" "tf-vg-ds-acc-test" {
org_guid = "${data.ibm_org.orginst.id}"
space_guid = "${data.ibm_space.space.id}"
account_guid = "${data.ibm_account.acc.id}"
cluster_name_id = "${ibm_container_cluster.testacc_cluster.name}"
config_dir = "${var.config_dir}"
}
output "cluster_config_path" {
value = "${data.ibm_container_cluster_config.tf-vg-ds-acc-test.config_file_path}"
}