Skip to content

Commit 9051ada

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 87b1443 + 5e886be commit 9051ada

File tree

1,882 files changed

+191864
-125834
lines changed

Some content is hidden

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

1,882 files changed

+191864
-125834
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dev_watch.sh
88
export_env.sh
99
.idea
1010
*.log
11+
*.exe
1112
.terraform/
1213
terraform-provider-tencentcloud
1314
terraform-provider-qcloud

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.13.3
1+
1.13.11

.golangci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
issues:
2+
exclude-rules:
3+
# Exclude issues bypassing staticcheck.conf
4+
- linters:
5+
- staticcheck
6+
text: "SA1019:"
27
max-per-linter: 0
38
max-same-issues: 0
49

@@ -20,8 +25,8 @@ linters:
2025

2126
linters-settings:
2227
errcheck:
23-
ignore: github.com/hashicorp/terraform/helper/schema:ForceNew|Set,fmt:.*,io:Close
28+
ignore: github.com/hashicorp/terraform-plugin-sdk/helper/schema:ForceNew|Set,fmt:.*,io:Close
2429

2530
run:
26-
deadline: 5m
2731
modules-download-mode: vendor
32+
timeout: 10m

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ services:
55

66
language: go
77
go:
8-
- "1.11.x"
98
- "1.12.x"
109
- "1.13.x"
11-
- tip
10+
- "1.14.x"
1211

1312
install:
1413
- make tools

CHANGELOG.md

Lines changed: 262 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,265 @@
1-
## 1.30.2 (Unreleased)
1+
## 1.39.0 (Unreleased)
2+
## 1.38.1 (June 30, 2020)
3+
4+
BUG FIXES:
5+
6+
* Resource: `tencentcloud_cos_bucket` fix creation failure.
7+
8+
## 1.38.0 (June 29, 2020)
9+
10+
FEATURES:
11+
12+
* **New Data Source**: `tencentcloud_cdn_domains`
13+
14+
BUG FIXES:
15+
16+
* Resource: `tencentcloud_gaap_http_domain` fix a condition for setting client certificate ids([#454](https://github.com/terraform-providers/terraform-provider-tencentcloud/pull/454)).
17+
18+
## 1.37.0 (June 23, 2020)
19+
20+
FEATURES:
21+
* **New Resource**: `tencentcloud_postgresql_instance`
22+
* **New Data Source**: `tencentcloud_postgresql_instances`
23+
* **New Data Source**: `tencentcloud_postgresql_speccodes`
24+
* **New Data Source**: `tencentcloud_sqlserver_zone_config`
25+
26+
ENHANCEMENTS:
27+
28+
* Resource: `tencentcloud_mongodb_instance` support more machine type.
29+
30+
## 1.36.1 (June 12, 2020)
31+
32+
ENHANCEMENTS:
33+
34+
* Resource: `tencentcloud_kubernetes_cluster` add new argument `labels`.
35+
* Resource: `tencentcloud_kubernetes_as_scaling_group` add new argument `labels`.
36+
* Resource: `tencentcloud_cos_bucket` add new arguments `encryption_algorithm` and `versioning_enable`.
37+
38+
## 1.36.0 (June 08, 2020)
39+
40+
FEATURES:
41+
42+
* **New Data Source**: `tencentcloud_availability_regions`
43+
44+
ENHANCEMENTS:
45+
46+
* Data Source: `tencentcloud_redis_instances` add new argument `charge_type` to support prepaid type.
47+
* Resource: `tencentcloud_redis_instance` add new argument `charge_type`, `prepaid_period` and `force_delete` to support prepaid type.
48+
* Resource: `tencentcloud_mysql_instance` add new argument `force_delete` to support soft deletion.
49+
* Resource: `tencentcloud_mysql_readonly_instance` add new argument `force_delete` to support soft deletion.
50+
51+
BUG FIXES:
52+
53+
* Resource: `tencentcloud_instance` fix `allocate_public_ip` inconsistency when eip is attached to the cvm.
54+
55+
DEPRECATED:
56+
* Data Source: `tencentcloud_mysql_instances`: optional argument `pay_type` is no longer supported, replace by `charge_type`.
57+
* Resource: `tencentcloud_mysql_instance`: optional arguments `pay_type` and `period` are no longer supported, replace by `charge_type` and `prepaid_period`.
58+
* Resource: `tencentcloud_mysql_readonly_instance`: optional arguments `pay_type` and `period` are no longer supported, replace by `charge_type` and `prepaid_period`.
59+
* Resource: `tencentcloud_tcaplus_group` replace by `tencentcloud_tcaplus_tablegroup`
60+
* Data Source: `tencentcloud_tcaplus_groups` replace by `tencentcloud_tcaplus_tablegroups`
61+
* Resource: `tencentcloud_tcaplus_tablegroup`,`tencentcloud_tcaplus_idl` and `tencentcloud_tcaplus_table` arguments `group_id`/`group_name` replace by `tablegroup_id`/`tablegroup_name`
62+
* Data Source: `tencentcloud_tcaplus_groups`,`tencentcloud_tcaplus_idls` and `tencentcloud_tcaplus_tables` arguments `group_id`/`group_name` replace by `tablegroup_id`/`tablegroup_name`
63+
64+
## 1.35.1 (June 02, 2020)
65+
66+
ENHANCEMENTS:
67+
68+
* Resource: `tencentcloud_as_scaling_config`, `tencentcloud_eip` and `tencentcloud_kubernetes_cluster` remove the validate function of `internet_max_bandwidth_out`.
69+
* Resource: `tencentcloud_vpn_gateway` update available value of `bandwidth`.
70+
71+
## 1.35.0 (June 01, 2020)
72+
73+
FEATURES:
74+
75+
* **New Data Source**: `tencentcloud_elasticsearch_instances`
76+
* **New Resource**: `tencentcloud_elasticsearch_instance`
77+
78+
## 1.34.0 (May 28, 2020)
79+
80+
ENHANCEMENTS:
81+
82+
* upgrade terraform-plugin-sdk
83+
84+
## 1.33.2 (May 25, 2020)
85+
86+
DEPRECATED:
87+
* Data Source: `tencentcloud_tcaplus_applications` replace by `tencentcloud_tcaplus_clusters`,optional arguments `app_id` and `app_name` are no longer supported, replace by `cluster_id` and `cluster_name`
88+
* Data Source: `tencentcloud_tcaplus_zones` replace by `tencentcloud_tcaplus_groups`,optional arguments `app_id`,`zone_id` and `zone_name` are no longer supported, replace by `cluster_id`,`group_id` and `cluster_name`
89+
* Data Source: `tencentcloud_tcaplus_tables` optional arguments `app_id` and `zone_id` are no longer supported, replace by `cluster_id` and `group_id`
90+
* Data Source: `tencentcloud_tcaplus_idls`: optional argument `app_id` is no longer supported, replace by `cluster_id`.
91+
* Resource: `tencentcloud_tcaplus_application` replace by `tencentcloud_tcaplus_cluster`,input argument `app_name` is no longer supported, replace by `cluster_name`
92+
* Resource: `tencentcloud_tcaplus_zone` replace by `tencentcloud_tcaplus_group`, input arguments `app_id` and `zone_name` are no longer supported, replace by `cluster_id` and `group_name`
93+
* Resource: `tencentcloud_tcaplus_idl` input arguments `app_id` and `zone_id` are no longer supported, replace by `cluster_id` and `group_id`
94+
* Resource: `tencentcloud_tcaplus_table` input arguments `app_id`and `zone_id` are no longer supported, replace by `cluster_id` and `group_id`
95+
* Resource: `tencentcloud_redis_instance`: optional argument `type` is no longer supported, replace by `type_id`.
96+
* Data Source: `tencentcloud_redis_instances`: output argument `type` is no longer supported, replace by `type_id`.
97+
* Data Source: `tencentcloud_redis_zone_config`: output argument `type` is no longer supported, replace by `type_id`.
98+
99+
## 1.33.1 (May 22, 2020)
100+
101+
ENHANCEMENTS:
102+
103+
* Data Source: `tencentcloud_redis_instances` add new argument `type_id`, `redis_shard_num`, `redis_replicas_num`
104+
* Data Source: `tencentcloud_redis_zone_config` add output argument `type_id` and new output argument `type_id`, `redis_shard_nums`, `redis_replicas_nums`
105+
* Data Source: `tencentcloud_ccn_instances` add new type `VPNGW` for field `instance_type`
106+
* Data Source: `tencentcloud_vpn_gateways` add new type `CCN` for field `type`
107+
* Resource: `tencentcloud_redis_instance` add new argument `type_id`, `redis_shard_num`, `redis_replicas_num`
108+
* Resource: `tencentcloud_ccn_attachment` add new type `CNN_INSTANCE_TYPE_VPNGW` for field `instance_type`
109+
* Resource: `tencentcloud_vpn_gateway` add new type `CCN` for field `type`
110+
111+
BUG FIXES:
112+
113+
* Resource: `tencentcloud_cdn_domain` fix `https_config` inconsistency after apply([#413](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/413)).
114+
115+
DEPRECATED:
116+
117+
* Resource: `tencentcloud_redis_instance`: optional argument `type` is no longer supported, replace by `type_id`.
118+
* Data Source: `tencentcloud_redis_instances`: output argument `type` is no longer supported, replace by `type_id`.
119+
* Data Source: `tencentcloud_redis_zone_config`: output argument `type` is no longer supported, replace by `type_id`.
120+
121+
## 1.33.0 (May 18, 2020)
122+
123+
FEATURES:
124+
125+
* **New Data Source**: `tencentcloud_monitor_policy_conditions`
126+
* **New Data Source**: `tencentcloud_monitor_data`
127+
* **New Data Source**: `tencentcloud_monitor_product_event`
128+
* **New Data Source**: `tencentcloud_monitor_binding_objects`
129+
* **New Data Source**: `tencentcloud_monitor_policy_groups`
130+
* **New Data Source**: `tencentcloud_monitor_product_namespace`
131+
* **New Resource**: `tencentcloud_monitor_policy_group`
132+
* **New Resource**: `tencentcloud_monitor_binding_object`
133+
* **New Resource**: `tencentcloud_monitor_binding_receiver`
134+
135+
ENHANCEMENTS:
136+
137+
* Data Source: `tencentcloud_instances` add new output argument `instance_charge_type_prepaid_renew_flag`.
138+
* Data Source: `tencentcloud_cbs_storages` add new output argument `prepaid_renew_flag`.
139+
* Data Source: `tencentcloud_cbs_storages` add new output argument `charge_type`.
140+
* Resource: `tencentcloud_instance` support update with argument `instance_charge_type_prepaid_renew_flag`.
141+
* Resource: `tencentcloud_cbs_storage` add new argument `force_delete`.
142+
* Resource: `tencentcloud_cbs_storage` add new argument `charge_type`.
143+
* Resource: `tencentcloud_cbs_storage` add new argument `prepaid_renew_flag`.
144+
* Resource: `tencentcloud_cdn_domain` add new argument `full_url_cache`([#405](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/405)).
145+
146+
DEPRECATED:
147+
148+
* Resource: `tencentcloud_cbs_storage`: optional argument `period` is no longer supported.
149+
150+
## 1.32.1 (April 30, 2020)
151+
152+
ENHANCEMENTS:
153+
154+
* Resource: `tencentcloud_ccn_attachment` add new argument `ccn_uin`.
155+
* Resource: `tencentcloud_instance` add new argument `force_delete`.
156+
157+
BUG FIXES:
158+
159+
* Resource: `tencentcloud_scf_function` fix update `zip_file`.
160+
161+
## 1.32.0 (April 20, 2020)
162+
163+
FEATURES:
164+
165+
* **New Resource**: `tencentcloud_kubernetes_cluster_attachment`([#285](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/285)).
166+
167+
ENHANCEMENTS:
168+
169+
* Resource: `tencentcloud_cdn_domain` add new attribute `cname`([#395](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/395)).
170+
171+
BUG FIXES:
172+
173+
* Resource: `tencentcloud_cos_bucket_object` mark the object as destroyed when the object not exist.
174+
175+
## 1.31.2 (April 17, 2020)
176+
177+
ENHANCEMENTS:
178+
179+
* Resource: `tencentcloud_cbs_storage` support modify `tags`.
180+
181+
## 1.31.1 (April 14, 2020)
182+
183+
BUG FIXES:
184+
185+
* Resource: `tencentcloud_keypair` fix bug when trying to destroy resources containing CVM and key pair([#375](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/375)).
186+
* Resource: `tencentcloud_clb_attachment` fix bug when trying to destroy multiple attachments in the array.
187+
* Resource: `tencentcloud_cam_group_membership` fix bug when trying to destroy multiple users in the array.
188+
189+
ENHANCEMENTS:
190+
191+
* Resource: `tencentcloud_mysql_account` add new argument `host`([#372](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/372)).
192+
* Resource: `tencentcloud_mysql_account_privilege` add new argument `account_host`([#372](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/372)).
193+
* Resource: `tencentcloud_mysql_privilege` add new argument `account_host`([#372](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/372)).
194+
* Resource: `tencentcloud_mysql_readonly_instance` check master monitor data before create([#379](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/379)).
195+
* Resource: `tencentcloud_tcaplus_application` remove the pull password from server.
196+
* Resource: `tencentcloud_instance` support import `allocate_public_ip`([#382](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/382)).
197+
* Resource: `tencentcloud_redis_instance` add two redis types.
198+
* Data Source: `tencentcloud_vpc_instances` add new argument `cidr_block`,`tag_key` ([#378](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/378)).
199+
* Data Source: `tencentcloud_vpc_route_tables` add new argument `tag_key`,`vpc_id`,`association_main` ([#378](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/378)).
200+
* Data Source: `tencentcloud_vpc_subnets` add new argument `cidr_block`,`tag_key`,`is_remote_vpc_snat` ([#378](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/378)).
201+
* Data Source: `tencentcloud_mysql_zone_config` and `tencentcloud_redis_zone_config` remove region check.
202+
203+
## 1.31.0 (April 07, 2020)
204+
205+
FEATURES:
206+
207+
* **New Resource**: `tencentcloud_cdn_domain`
208+
209+
ENHANCEMENTS:
210+
211+
* Data Source: `tencentcloud_cam_users` add new argument `user_id`.
212+
* Resource: `tencentcloud_vpc` add retry logic.
213+
214+
BUG FIXES:
215+
216+
* Resource: `tencentcloud_instance` fix timeout error when modify password.
217+
218+
## 1.30.7 (March 31, 2020)
219+
220+
BUG FIXES:
221+
222+
* Resource: `tencentcloud_kubernetes_as_scaling_group` set a value to argument `key_ids` cause error .
223+
224+
## 1.30.6 (March 30, 2020)
225+
226+
ENHANCEMENTS:
227+
228+
* Resource: `tencentcloud_tcaplus_idl` add new argument `zone_id`.
229+
* Resource: `tencentcloud_cam_user` add new argument `force_delete`.([#354](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/354))
230+
* Data Source: `tencentcloud_vpc_subnets` add new argument `vpc_id`.
231+
232+
## 1.30.5 (March 19, 2020)
233+
234+
BUG FIXES:
235+
236+
* Resource: `tencentcloud_key_pair` will be replaced when `public_key` contains comment.
237+
* Resource: `tencentcloud_scf_function` upload local file error.
238+
239+
ENHANCEMENTS:
240+
241+
* Resource: `tencentcloud_scf_function` runtime support nodejs8.9 and nodejs10.15.
242+
243+
## 1.30.4 (March 10, 2020)
244+
245+
BUG FIXES:
246+
247+
* Resource: `tencentcloud_cam_policy` fix read nil issue when the resource is not exist.([#344](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/#344)).
248+
* Resource: `tencentcloud_key_pair` will be replaced when the end of `public_key` contains spaces([#343](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/343)).
249+
* Resource: `tencentcloud_scf_function` fix trigger does not support cos_region.
250+
251+
ENHANCEMENTS:
252+
253+
* Resource: `tencentcloud_kubernetes_cluster` add new attributes `cluster_os_type`,`cluster_internet`,`cluster_intranet`,`managed_cluster_internet_security_policies` and `cluster_intranet_subnet_id`.
254+
255+
256+
## 1.30.3 (February 24, 2020)
257+
258+
BUG FIXES:
259+
260+
* Resource: `tencentcloud_instance` fix that classic network does not support([#339](https://github.com/terraform-providers/terraform-provider-tencentcloud/issues/339)).
261+
262+
## 1.30.2 (February 17, 2020)
2263

3264
ENHANCEMENTS:
4265

GNUmakefile

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ lint:
3434
@tfproviderlint \
3535
-c 1 \
3636
-AT001 \
37+
-AT002 \
38+
-AT005 \
39+
-AT006 \
40+
-AT007 \
41+
-AT008 \
42+
-R003 \
43+
-R012 \
44+
-R013 \
3745
-S001 \
3846
-S002 \
3947
-S003 \
@@ -51,12 +59,38 @@ lint:
5159
-S016 \
5260
-S017 \
5361
-S019 \
62+
-S020 \
63+
-S021 \
64+
-S022 \
65+
-S023 \
66+
-S024 \
67+
-S025 \
68+
-S026 \
69+
-S027 \
70+
-S028 \
71+
-S029 \
72+
-S030 \
73+
-S031 \
74+
-S032 \
75+
-S033 \
76+
-S034 \
77+
-S035 \
78+
-S036 \
79+
-S037 \
80+
-V002 \
81+
-V003 \
82+
-V004 \
83+
-V005 \
84+
-V006 \
85+
-V007 \
86+
-V008 \
5487
./$(PKG_NAME)
5588

5689
tools:
5790
GO111MODULE=on go install github.com/bflad/tfproviderlint/cmd/tfproviderlint
5891
GO111MODULE=on go install github.com/client9/misspell/cmd/misspell
5992
GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint
93+
GO111MODULE=on go install github.com/katbyte/terrafmt
6094

6195
test-compile:
6296
@if [ "$(TEST)" = "./..." ]; then \
@@ -101,7 +135,20 @@ endif
101135

102136
website-lint:
103137
@echo "==> Checking website against linters..."
104-
@misspell -error -source=text website/
138+
@misspell -error -source=text website/ || (echo; \
139+
echo "Unexpected mispelling found in website files."; \
140+
echo "To automatically fix the misspelling, run 'make website-lint-fix' and commit the changes."; \
141+
exit 1)
142+
@terrafmt diff ./website --check --pattern '*.markdown' --quiet || (echo; \
143+
echo "Unexpected differences in website HCL formatting."; \
144+
echo "To see the full differences, run: terrafmt diff ./website --pattern '*.markdown'"; \
145+
echo "To automatically fix the formatting, run 'make website-lint-fix' and commit the changes."; \
146+
exit 1)
147+
148+
website-lint-fix:
149+
@echo "==> Applying automatic website linter fixes..."
150+
@misspell -w -source=text website/
151+
@terrafmt fmt ./website --pattern '*.markdown'
105152

106153
website-test:
107154
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))

examples/tencentcloud-cam/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ resource "tencentcloud_cam_user" "example" {
1313
phone_num = var.phone_num
1414
country_code = var.country_code
1515
email = var.email
16+
force_delete = true
1617
}
1718

1819
resource "tencentcloud_cam_policy" "example" {

0 commit comments

Comments
 (0)