File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
Provides a resource to create a CLB attachment.
3
3
4
- Example Usage
4
+ # Example Usage
5
5
6
6
```hcl
7
- resource "tencentcloud_clb_attachment" "foo" {
8
- clb_id = "lb-k2zjp9lv"
9
- listener_id = "lbl-hh141sn9"
10
- rule_id = "loc-4xxr2cy7"
11
-
12
- targets {
13
- instance_id = "ins-1flbqyp8"
14
- port = 80
15
- weight = 10
16
- }
17
- }
7
+
8
+ resource "tencentcloud_clb_attachment" "foo" {
9
+ clb_id = "lb-k2zjp9lv"
10
+ listener_id = "lbl-hh141sn9"
11
+ rule_id = "loc-4xxr2cy7"
12
+
13
+ targets {
14
+ instance_id = "ins-1flbqyp8"
15
+ port = 80
16
+ weight = 10
17
+ }
18
+ }
19
+
18
20
```
19
21
20
- Import
22
+ # Import
21
23
22
24
CLB attachment can be imported using the id, e.g.
23
25
@@ -86,11 +88,13 @@ func resourceTencentCloudClbServerAttachment() *schema.Resource {
86
88
"instance_id" : {
87
89
Type : schema .TypeString ,
88
90
Optional : true ,
91
+ Default : "" ,
89
92
Description : "CVM Instance Id of the backend server, conflict with `eni_ip` but must specify one of them." ,
90
93
},
91
94
"eni_ip" : {
92
95
Type : schema .TypeString ,
93
96
Optional : true ,
97
+ Default : "" ,
94
98
Description : "Eni IP address of the backend server, conflict with `instance_id` but must specify one of them." ,
95
99
},
96
100
"port" : {
You can’t perform that action at this time.
0 commit comments