Skip to content

Commit b30e998

Browse files
authored
fix(eip): [126431857] tencentcloud_eip_association update doc for instance_id (#3471)
* add * add
1 parent 2cb8457 commit b30e998

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

.changelog/3471.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_eip_association: update doc for `instance_id`
3+
```

tencentcloud/services/cvm/resource_tc_eip_association.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func ResourceTencentCloudEipAssociation() *schema.Resource {
4242
"private_ip",
4343
},
4444
ValidateFunc: tccommon.ValidateStringLengthInRange(1, 25),
45-
Description: "The CVM or CLB instance id going to bind with the EIP. This field is conflict with `network_interface_id` and `private_ip fields`.",
45+
Description: "The CVM, SaaS WAF or CLB instance id going to bind with the EIP. This field is conflict with `network_interface_id` and `private_ip fields`.",
4646
},
4747
"network_interface_id": {
4848
Type: schema.TypeString,

tencentcloud/services/cvm/resource_tc_eip_association.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,19 @@ resource "tencentcloud_eip_association" "example" {
105105
}
106106
```
107107

108+
Bind elastic public IP By WAF(SaaS)
109+
110+
```hcl
111+
resource "tencentcloud_eip_association" "example" {
112+
eip_id = "eip-4stgtfb8"
113+
instance_id = "waf_2opxlbky67yub3gm"
114+
}
115+
```
116+
108117
Import
109118

110119
Eip association can be imported using the id, e.g.
111120

112121
```
113-
$ terraform import tencentcloud_eip_association.bar eip-41s6jwy4::ins-34jwj3
122+
$ terraform import tencentcloud_eip_association.example eip-41s6jwy4::ins-0cxjwrog
114123
```

website/docs/r/eip_association.html.markdown

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,21 @@ resource "tencentcloud_eip_association" "example" {
116116
}
117117
```
118118

119+
### Bind elastic public IP By WAF(SaaS)
120+
121+
```hcl
122+
resource "tencentcloud_eip_association" "example" {
123+
eip_id = "eip-4stgtfb8"
124+
instance_id = "waf_2opxlbky67yub3gm"
125+
}
126+
```
127+
119128
## Argument Reference
120129

121130
The following arguments are supported:
122131

123132
* `eip_id` - (Required, String, ForceNew) The ID of EIP.
124-
* `instance_id` - (Optional, String, ForceNew) The CVM or CLB instance id going to bind with the EIP. This field is conflict with `network_interface_id` and `private_ip fields`.
133+
* `instance_id` - (Optional, String, ForceNew) The CVM, SaaS WAF or CLB instance id going to bind with the EIP. This field is conflict with `network_interface_id` and `private_ip fields`.
125134
* `network_interface_id` - (Optional, String, ForceNew) Indicates the network interface id like `eni-xxxxxx`. This field is conflict with `instance_id`.
126135
* `private_ip` - (Optional, String, ForceNew) Indicates an IP belongs to the `network_interface_id`. This field is conflict with `instance_id`.
127136

@@ -138,6 +147,6 @@ In addition to all arguments above, the following attributes are exported:
138147
Eip association can be imported using the id, e.g.
139148

140149
```
141-
$ terraform import tencentcloud_eip_association.bar eip-41s6jwy4::ins-34jwj3
150+
$ terraform import tencentcloud_eip_association.example eip-41s6jwy4::ins-0cxjwrog
142151
```
143152

0 commit comments

Comments
 (0)