Skip to content

Commit 59128ca

Browse files
authored
Add resource tcr_vpc_attachment (#569)
1 parent 0ec27c8 commit 59128ca

File tree

334 files changed

+4350
-1184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

334 files changed

+4350
-1184
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
## 1.50.1 (Unreleased)
1+
## 1.51.0 (Unreleased)
2+
3+
FEATURES:
4+
5+
* **New Resource**: `tencentcloud_tcr_vpc_attachment`
6+
* **New Data Source**: `tencentcloud_tcr_vpc_attachments`
27

38
ENHANCEMENTS:
49

10+
* Resource: `tencentcloud_kubernetes_cluster` support `name`, `project_id` and `description` modification.
511
* Doc: optimize document.
612

713
## 1.50.0 (December 08, 2020)

examples/tencentcloud-tcr/main.tf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,28 @@ data "tencentcloud_tcr_namespaces" "example" {
4343
data "tencentcloud_tcr_repositories" "example" {
4444
instance_id = tencentcloud_tcr_repository.example.instance_id
4545
namespace_name = tencentcloud_tcr_namespace.example.name
46+
}
47+
48+
# get internal vpc access
49+
resource "tencentcloud_vpc" "example" {
50+
name = "example"
51+
cidr_block = "10.0.0.0/16"
52+
}
53+
54+
resource "tencentcloud_subnet" "example" {
55+
availability_zone = var.availability_zone
56+
name = "example"
57+
vpc_id = tencentcloud_vpc.example.id
58+
cidr_block = "10.0.20.0/28"
59+
is_multicast = false
60+
}
61+
62+
resource "tencentcloud_tcr_vpc_attachment" "example" {
63+
instance_id = tencentcloud_tcr_instance.example.id
64+
vpc_id = tencentcloud_vpc.example.id
65+
subnet_id = tencentcloud_subnet.example.id
66+
}
67+
68+
data "tencentcloud_tcr_vpc_attachments" "example" {
69+
instance_id = tencentcloud_tcr_vpc_attachment.example.instance_id
4670
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
variable "availability_zone" {
2+
default = "ap-guangzhou-3"
3+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/mattn/go-colorable v0.1.6 // indirect
1616
github.com/mitchellh/go-homedir v1.1.0
1717
github.com/pkg/errors v0.9.1
18-
github.com/tencentcloud/tencentcloud-sdk-go v1.0.59
18+
github.com/tencentcloud/tencentcloud-sdk-go v1.0.67
1919
github.com/yangwenmai/ratelimit v0.0.0-20180104140304-44221c2292e1
2020
github.com/zclconf/go-cty v1.4.2 // indirect
2121
golang.org/x/sys v0.0.0-20200523222454-059865788121 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s
441441
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
442442
github.com/tdakkota/asciicheck v0.0.0-20200416190851-d7f85be797a2 h1:Xr9gkxfOP0KQWXKNqmwe8vEeSUiUj4Rlee9CMVX2ZUQ=
443443
github.com/tdakkota/asciicheck v0.0.0-20200416190851-d7f85be797a2/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM=
444-
github.com/tencentcloud/tencentcloud-sdk-go v1.0.59 h1:puW/EDFi2+iohSMqUUGXeKiJMq8MrJZdt56stDAsxBs=
445-
github.com/tencentcloud/tencentcloud-sdk-go v1.0.59/go.mod h1:asUz5BPXxgoPGaRgZaVm1iGcUAuHyYUo1nXqKa83cvI=
444+
github.com/tencentcloud/tencentcloud-sdk-go v1.0.67 h1:fKSwJ7hrvHTxr33EcmrbKcavYJ/U2zNIH8Lvsj2FNTE=
445+
github.com/tencentcloud/tencentcloud-sdk-go v1.0.67/go.mod h1:asUz5BPXxgoPGaRgZaVm1iGcUAuHyYUo1nXqKa83cvI=
446446
github.com/tetafro/godot v0.3.7 h1:+mecr7RKrUKB5UQ1gwqEMn13sDKTyDR8KNIquB9mm+8=
447447
github.com/tetafro/godot v0.3.7/go.mod h1:/7NLHhv08H1+8DNj0MElpAACw1ajsCuf3TKNQxA5S+0=
448448
github.com/timakin/bodyclose v0.0.0-20190930140734-f7f2e9bca95e h1:RumXZ56IrCj4CL+g1b9OL/oH0QnsF976bC8xQFYUD5Q=

tencentcloud/data_source_tc_address_templates.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func dataSourceTencentCloudAddressTemplates() *schema.Resource {
3434
"id": {
3535
Type: schema.TypeString,
3636
Optional: true,
37-
Description: "Id of the address template to query.",
37+
Description: "ID of the address template to query.",
3838
},
3939
"result_output_file": {
4040
Type: schema.TypeString,
@@ -52,7 +52,7 @@ func dataSourceTencentCloudAddressTemplates() *schema.Resource {
5252
"id": {
5353
Type: schema.TypeString,
5454
Computed: true,
55-
Description: "Id of the address template.",
55+
Description: "ID of the address template.",
5656
},
5757
"name": {
5858
Type: schema.TypeString,

tencentcloud/data_source_tc_api_gateway_api_keys.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func dataSourceTencentCloudAPIGatewayAPIKeys() *schema.Resource {
6565
"status": {
6666
Type: schema.TypeString,
6767
Computed: true,
68-
Description: "Key status. Valid values: `on`, `off`.",
68+
Description: "Key status. Values: `on`, `off`.",
6969
},
7070
"access_key_secret": {
7171
Type: schema.TypeString,
@@ -75,12 +75,12 @@ func dataSourceTencentCloudAPIGatewayAPIKeys() *schema.Resource {
7575
"modify_time": {
7676
Type: schema.TypeString,
7777
Computed: true,
78-
Description: "Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.",
78+
Description: "Last modified time in the format of `YYYY-MM-DDThh:mm:ssZ` according to ISO 8601 standard. UTC time is used.",
7979
},
8080
"create_time": {
8181
Type: schema.TypeString,
8282
Computed: true,
83-
Description: "Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.",
83+
Description: "Creation time in the format of `YYYY-MM-DDThh:mm:ssZ` according to ISO 8601 standard. UTC time is used.",
8484
},
8585
},
8686
},

tencentcloud/data_source_tc_api_gateway_ip_strategies.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ func dataSourceTencentCloudAPIGatewayIpStrategy() *schema.Resource {
199199
"modify_time": {
200200
Type: schema.TypeString,
201201
Computed: true,
202-
Description: "Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.",
202+
Description: "Last modified time in the format of `YYYY-MM-DDThh:mm:ssZ` according to ISO 8601 standard. UTC time is used.",
203203
},
204204
"create_time": {
205205
Type: schema.TypeString,
206206
Computed: true,
207-
Description: "Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.",
207+
Description: "Creation time in the format of `YYYY-MM-DDThh:mm:ssZ` according to ISO 8601 standard. UTC time is used.",
208208
},
209209
},
210210
},

tencentcloud/data_source_tc_api_gateway_services.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func dataSourceTencentCloudAPIGatewayServices() *schema.Resource {
101101
"internal_sub_domain": {
102102
Type: schema.TypeString,
103103
Computed: true,
104-
Description: "Private network access subdomain name.",
104+
Description: "Private network access sub-domain name.",
105105
},
106106
"outer_sub_domain": {
107107
Type: schema.TypeString,

tencentcloud/data_source_tc_api_gateway_usage_plan_environments.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ func dataSourceTencentCloudAPIGatewayUsagePlanEnvironments() *schema.Resource {
111111
"modify_time": {
112112
Type: schema.TypeString,
113113
Computed: true,
114-
Description: "Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.",
114+
Description: "Last modified time in the format of `YYYY-MM-DDThh:mm:ssZ` according to ISO 8601 standard. UTC time is used.",
115115
},
116116
"create_time": {
117117
Type: schema.TypeString,
118118
Computed: true,
119-
Description: "Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.",
119+
Description: "Creation time in the format of `YYYY-MM-DDThh:mm:ssZ` according to ISO 8601 standard. UTC time is used.",
120120
},
121121
},
122122
},

0 commit comments

Comments
 (0)