-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathmain.tf
40 lines (35 loc) · 975 Bytes
/
main.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
resource "tencentcloud_dcx" "bgp_main" {
bandwidth = 900
dc_id = var.dc_id
dcg_id = var.dcg_id
name = "bgp_main"
network_type = "VPC"
route_type = "BGP"
vlan = 100
vpc_id = var.vpc_id
}
resource "tencentcloud_dcx" "static_main" {
bandwidth = 900
dc_id = var.dc_id
dcg_id = var.dcg_id
name = "static_main"
network_type = "VPC"
route_type = "STATIC"
vlan = 301
vpc_id = var.vpc_id
route_filter_prefixes = ["10.10.10.101/32"]
tencent_address = "100.93.46.1/30"
customer_address = "100.93.46.2/30"
}
data "tencentcloud_dcx_instances" "name_select" {
name = "main"
}
data "tencentcloud_dcx_instances" "id" {
dcx_id = tencentcloud_dcx.static_main.id
}
data "tencentcloud_dc_instances" "name" {
name = "x"
}
data "tencentcloud_dc_instances" "id" {
dc_id = var.dc_id
}