You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/r/vpn_gateway.html.markdown
+48-2Lines changed: 48 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,52 @@ Provides a resource to create a VPN gateway.
15
15
16
16
## Example Usage
17
17
18
+
VPC SSL VPN gateway
19
+
20
+
```hcl
21
+
resource "tencentcloud_vpn_gateway" "my_cgw" {
22
+
name = "test"
23
+
bandwidth = 5
24
+
zone = "ap-guangzhou-3"
25
+
type = "SSL"
26
+
vpc_id = "vpc-86v957zb"
27
+
28
+
tags = {
29
+
test = "test"
30
+
}
31
+
}
32
+
```
33
+
34
+
CCN IPEC VPN gateway
35
+
36
+
```hcl
37
+
resource "tencentcloud_vpn_gateway" "my_cgw" {
38
+
name = "test"
39
+
bandwidth = 5
40
+
zone = "ap-guangzhou-3"
41
+
type = "CCN"
42
+
43
+
tags = {
44
+
test = "test"
45
+
}
46
+
}
47
+
```
48
+
49
+
CCN SSL VPN gateway
50
+
51
+
```hcl
52
+
resource "tencentcloud_vpn_gateway" "my_cgw" {
53
+
name = "test"
54
+
bandwidth = 5
55
+
zone = "ap-guangzhou-3"
56
+
type = "SSL_CCN"
57
+
58
+
tags = {
59
+
test = "test"
60
+
}
61
+
}
62
+
```
63
+
18
64
POSTPAID_BY_HOUR VPN gateway
19
65
20
66
```hcl
@@ -60,8 +106,8 @@ The following arguments are supported:
60
106
*`prepaid_period` - (Optional, Int) Period of instance to be prepaid. Valid value: `1`, `2`, `3`, `4`, `6`, `7`, `8`, `9`, `12`, `24`, `36`. The unit is month. Caution: when this para and renew_flag para are valid, the request means to renew several months more pre-paid period. This para can only be changed on `IPSEC` vpn gateway.
61
107
*`prepaid_renew_flag` - (Optional, String) Flag indicates whether to renew or not. Valid value: `NOTIFY_AND_AUTO_RENEW`, `NOTIFY_AND_MANUAL_RENEW`.
62
108
*`tags` - (Optional, Map) A list of tags used to associate different resources.
63
-
*`type` - (Optional, String) Type of gateway instance. Valid value: `IPSEC`, `SSL` and `CCN`. Note: CCN type is only for whitelist customer now.
64
-
*`vpc_id` - (Optional, String, ForceNew) ID of the VPC. Required if vpn gateway is not in `CCN` type, and doesn't make sense for `CCN` vpn gateway.
109
+
*`type` - (Optional, String) Type of gateway instance, Default is `IPSEC`. Valid value: `IPSEC`, `SSL`, `CCN` and `SSL_CCN`.
110
+
*`vpc_id` - (Optional, String, ForceNew) ID of the VPC. Required if vpn gateway is not in `CCN`or `SSL_CCN`type, and doesn't make sense for `CCN` or `SSL_CCN` vpn gateway.
0 commit comments