Skip to content

Commit 2ae4900

Browse files
authored
Merge pull request #196 from terraform-tencentcloud/vpn-dev
fix large integer issue when building on 32-bit platform
2 parents f872013 + 393b7af commit 2ae4900

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tencentcloud/resource_tc_vpn_connection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ func resourceTencentCloudVpnConnection() *schema.Resource {
228228
Type: schema.TypeInt,
229229
Optional: true,
230230
Default: 1843200,
231-
ValidateFunc: validateIntegerInRange(2560, 4294967295),
232-
Description: "SA lifetime of the IPSEC operation specification, unit is `KB`. The value ranges from 2560 to 4294967295. Default value is 1843200.",
231+
ValidateFunc: validateIntegerMin(2560),
232+
Description: "SA lifetime of the IPSEC operation specification, unit is `KB`. The value should not be less then 2560. Default value is 1843200.",
233233
},
234234
"tags": {
235235
Type: schema.TypeMap,

website/docs/r/vpn_connection.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The following arguments are supported:
7070
* `ipsec_integrity_algorithm` - (Optional) Integrity algorithm of the IPSEC operation specification, valid values are `SHA1`, `MD5`. Default value is `MD5`.
7171
* `ipsec_pfs_dh_group` - (Optional) PFS DH group, valid values are `GROUP1`, `GROUP2`, `GROUP5`, `GROUP14`, `GROUP24`, `NULL`. Default value is `NULL`.
7272
* `ipsec_sa_lifetime_seconds` - (Optional) SA lifetime of the IPSEC operation specification, unit is `second`. The value ranges from 180 to 604800. Default value is 3600 seconds.
73-
* `ipsec_sa_lifetime_traffic` - (Optional) SA lifetime of the IPSEC operation specification, unit is `KB`. The value ranges from 2560 to 4294967295. Default value is 1843200.
73+
* `ipsec_sa_lifetime_traffic` - (Optional) SA lifetime of the IPSEC operation specification, unit is `KB`. The value should not be less then 2560. Default value is 1843200.
7474
* `tags` - (Optional) A list of tags used to associate different resources.
7575

7676
The `security_group_policy` object supports the following:

0 commit comments

Comments
 (0)