Skip to content

Commit bc8d0cc

Browse files
committed
merge master
2 parents f4485d4 + b4452a7 commit bc8d0cc

File tree

290 files changed

+32882
-2884
lines changed

Some content is hidden

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

290 files changed

+32882
-2884
lines changed

.githooks/pre-commit

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
3+
make fmtcheck
4+
if [ $? -ne 0 ]; then
5+
printf "COMMIT FAILED\n"
6+
exit 1
7+
fi
8+
9+
make lint
10+
if [ $? -ne 0 ]; then
11+
printf "COMMIT FAILED\n"
12+
exit 1
13+
fi
14+
15+
printf "==> Generating docs for tencentcloud provider...\n"
16+
doc=`make doc 2>&1`
17+
if [ $? -ne 0 ]; then
18+
echo "$doc"| tail -n 4|head -n 2
19+
printf "COMMIT FAILED\n"
20+
exit 1
21+
fi
22+
23+
make website-lint
24+
if [ $? -ne 0 ]; then
25+
printf "COMMIT FAILED\n"
26+
exit 1
27+
fi
28+
29+
diff=`git diff --name-only website/docs/`
30+
if [ "$diff" != "" ]; then
31+
printf "There are docs updated when checking, 'git add' it first.\n"
32+
printf "COMMIT FAILED\n"
33+
exit 1
34+
fi
35+
36+
printf "COMMIT READY\n"
37+
exit 0

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ services:
55
language: go
66
go:
77
- "1.11.x"
8+
- "1.12.x"
9+
- "1.13.x"
810
- tip
911

1012
install:

CHANGELOG.md

Lines changed: 127 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,130 @@
1-
## 1.16.2 (Unreleased)
1+
## 1.20.1 (Unreleased)
2+
## 1.20.0 (September 24, 2019)
3+
4+
FEATURES:
5+
6+
* **New Data Source**: `tencentcloud_eips`
7+
* **New Data Source**: `tencentcloud_instances`
8+
* **New Data Source**: `tencentcloud_key_pairs`
9+
* **New Data Source**: `tencentcloud_placement_groups`
10+
* **New Resource**: `tencentcloud_placement_group`
11+
12+
ENHANCEMENTS:
13+
14+
* Data Source: `tencentcloud_redis_instances` add optional argument `tags`.
15+
* Data Source: `tencentcloud_mongodb_instances` add optional argument `tags`.
16+
* Data Source: `tencentcloud_instance_types` add optional argument `availability_zone` and `gpu_core_count`.
17+
* Data Source: `tencentcloud_gaap_http_rules` add optional argument `forward_host` and attributes `forward_host` in `rules`.
18+
* Resource: `tencentcloud_redis_instance` add optional argument `tags`.
19+
* Resource: `tencentcloud_mongodb_instance` add optional argument `tags`.
20+
* Resource: `tencentcloud_mongodb_sharding_instance` add optional argument `tags`.
21+
* Resource: `tencentcloud_instance` add optional argument `placement_group_id`.
22+
* Resource: `tencentcloud_eip` refactor logic with api3.0 .
23+
* Resource: `tencentcloud_eip_association` refactor logic with api3.0 .
24+
* Resource: `tencentcloud_key_pair` refactor logic with api3.0 .
25+
* Resource: `tencentcloud_gaap_http_rule` add optional argument `forward_host`.
26+
27+
BUG FIXES:
28+
* Resource: `tencentcloud_mysql_instance`: miss argument `availability_zone` causes the instance to be recreated.
29+
30+
DEPRECATED:
31+
32+
* Data Source: `tencentcloud_eip` replaced by `tencentcloud_eips`.
33+
34+
## 1.19.0 (September 19, 2019)
35+
36+
FEATURES:
37+
38+
* **New Resource**: `tencentcloud_security_group_lite_rule`.
39+
40+
ENHANCEMENTS:
41+
42+
* Data Source: `tencentcloud_security_groups`: add optional argument `tags`.
43+
* Data Source: `tencentcloud_security_groups`: add optional argument `result_output_file` and new attributes `ingress`, `egress` for list `security_groups`.
44+
* Resource: `tencentcloud_security_group`: add optional argument `tags`.
45+
* Resource: `tencentcloud_as_scaling_config`: internet charge type support `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.
46+
47+
BUG FIXES:
48+
* Resource: `tencentcloud_clb_listener_rule`: fix unclear description and errors in example.
49+
* Resource: `tencentcloud_instance`: fix hostname is not work.
50+
51+
## 1.18.1 (September 17, 2019)
52+
53+
FEATURES:
54+
55+
* **Update Data Source**: `tencentcloud_vpc_instances` add optional argument `tags`
56+
* **Update Data Source**: `tencentcloud_vpc_subnets` add optional argument `tags`
57+
* **Update Data Source**: `tencentcloud_route_tables` add optional argument `tags`
58+
* **Update Resource**: `tencentcloud_vpc` add optional argument `tags`
59+
* **Update Resource**: `tencentcloud_subnet` add optional argument `tags`
60+
* **Update Resource**: `tencentcloud_route_table` add optional argument `tags`
61+
62+
ENHANCEMENTS:
63+
64+
* Data Source:`tencentcloud_kubernetes_clusters` support pull out authentication information for cluster access too.
65+
* Resource:`tencentcloud_kubernetes_cluster` support pull out authentication information for cluster access.
66+
67+
BUG FIXES:
68+
69+
* Resource: `tencentcloud_mysql_instance`: when the mysql is abnormal state, read the basic information report error
70+
71+
DEPRECATED:
72+
73+
* Data Source: `tencentcloud_kubernetes_clusters`:`container_runtime` is no longer supported.
74+
75+
76+
## 1.18.0 (September 10, 2019)
77+
78+
FEATURES:
79+
80+
* **New Data Source**: `tencentcloud_ssl_certificates`
81+
* **New Data Source**: `tencentcloud_dnats`
82+
* **New Data Source**: `tencentcloud_nat_gateways`
83+
* **New Resource**: `tencentcloud_ssl_certificate`
84+
* **Update Resource**: `tencentcloud_clb_redirection` add optional argument `is_auto_rewrite`
85+
* **Update Resource**: `tencentcloud_nat_gateway` , add more configurable items.
86+
* **Update Resource**: `tencentcloud_nat` , add more configurable items.
87+
88+
DEPRECATED:
89+
* Data Source: `tencentcloud_nats` replaced by `tencentcloud_nat_gateways`.
90+
91+
## 1.17.0 (September 04, 2019)
92+
93+
FEATURES:
94+
* **New Data Source**: `tencentcloud_gaap_proxies`
95+
* **New Data Source**: `tencentcloud_gaap_realservers`
96+
* **New Data Source**: `tencentcloud_gaap_layer4_listeners`
97+
* **New Data Source**: `tencentcloud_gaap_layer7_listeners`
98+
* **New Data Source**: `tencentcloud_gaap_http_domains`
99+
* **New Data Source**: `tencentcloud_gaap_http_rules`
100+
* **New Data Source**: `tencentcloud_gaap_security_policies`
101+
* **New Data Source**: `tencentcloud_gaap_security_rules`
102+
* **New Data Source**: `tencentcloud_gaap_certificates`
103+
* **New Resource**: `tencentcloud_gaap_proxy`
104+
* **New Resource**: `tencentcloud_gaap_realserver`
105+
* **New Resource**: `tencentcloud_gaap_layer4_listener`
106+
* **New Resource**: `tencentcloud_gaap_layer7_listener`
107+
* **New Resource**: `tencentcloud_gaap_http_domain`
108+
* **New Resource**: `tencentcloud_gaap_http_rule`
109+
* **New Resource**: `tencentcloud_gaap_certificate`
110+
* **New Resource**: `tencentcloud_gaap_security_policy`
111+
* **New Resource**: `tencentcloud_gaap_security_rule`
112+
113+
## 1.16.3 (August 30, 2019)
114+
115+
BUG FIXIES:
116+
117+
* Resource: `tencentcloud_kubernetes_cluster`: cgi error retry.
118+
* Resource: `tencentcloud_kubernetes_scale_worker`: cgi error retry.
119+
120+
## 1.16.2 (August 28, 2019)
121+
122+
BUG FIXIES:
123+
124+
* Resource: `tencentcloud_instance`: fixed cvm data disks missing computed.
125+
* Resource: `tencentcloud_mysql_backup_policy`: `backup_model` remove logical backup support.
126+
* Resource: `tencentcloud_mysql_instance`: `tags` adapt to the new official api.
127+
2128
## 1.16.1 (August 27, 2019)
3129

4130
ENHANCEMENTS:

GNUmakefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ test-compile:
6464
fi
6565
go test -c $(TEST) $(TESTARGS)
6666

67+
doc:
68+
cd gendoc && go run main.go template.go && cd ..
69+
70+
hooks: tools
71+
find .git/hooks -type l -exec rm {} \;
72+
find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \;
73+
6774
website:
6875
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
6976
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
@@ -82,4 +89,4 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
8289
endif
8390
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
8491

85-
.PHONY: build sweep test testacc fmt fmtcheck lint tools test-compile website website-lint website-test
92+
.PHONY: build sweep test testacc fmt fmtcheck lint tools test-compile doc hooks website website-lint website-test
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
resource tencentcloud_gaap_certificate "server" {
2+
type = "SERVER"
3+
name = "test"
4+
content = "${var.server_cert}"
5+
key = "${var.server_key}"
6+
}
7+
8+
resource tencentcloud_gaap_certificate "client" {
9+
type = "CLIENT"
10+
content = "${var.client_ca}"
11+
key = "${var.client_ca_key}"
12+
}
13+
14+
resource tencentcloud_gaap_certificate "realserver" {
15+
type = "REALSERVER"
16+
content = "${var.client_ca}"
17+
key = "${var.client_ca_key}"
18+
}
19+
20+
resource tencentcloud_gaap_certificate "basic" {
21+
type = "BASIC"
22+
content = "test:tx2KGdo3zJg/."
23+
}
24+
25+
resource tencentcloud_gaap_certificate "gaap" {
26+
type = "PROXY"
27+
content = "${var.server_cert}"
28+
key = "${var.server_key}"
29+
}
30+
31+
data "tencentcloud_gaap_certificates" "foo" {
32+
id = "${tencentcloud_gaap_certificate.server.id}"
33+
}
34+
35+
data "tencentcloud_gaap_certificates" "bar" {
36+
name = "${tencentcloud_gaap_certificate.server.name}"
37+
}

examples/tencentcloud-gaap-certificate/variable.tf

Lines changed: 15 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
resource tencentcloud_gaap_proxy "foo" {
2+
name = "ci-test-gaap-proxy"
3+
bandwidth = 10
4+
concurrent = 2
5+
access_region = "SouthChina"
6+
realserver_region = "NorthChina"
7+
}
8+
9+
resource tencentcloud_gaap_realserver "foo" {
10+
ip = "1.1.1.1"
11+
name = "ci-test-gaap-realserver"
12+
}
13+
14+
resource tencentcloud_gaap_realserver "bar" {
15+
ip = "119.29.29.29"
16+
name = "ci-test-gaap-realserver2"
17+
}
18+
19+
resource tencentcloud_gaap_layer4_listener "foo" {
20+
protocol = "TCP"
21+
name = "ci-test-gaap-4-listener-new"
22+
port = 80
23+
scheduler = "wrr"
24+
realserver_type = "IP"
25+
proxy_id = "${tencentcloud_gaap_proxy.foo.id}"
26+
health_check = true
27+
interval = 11
28+
connect_timeout = 10
29+
30+
realserver_bind_set {
31+
id = "${tencentcloud_gaap_realserver.foo.id}"
32+
ip = "${tencentcloud_gaap_realserver.foo.ip}"
33+
port = 80
34+
weight = 1
35+
}
36+
37+
realserver_bind_set {
38+
id = "${tencentcloud_gaap_realserver.bar.id}"
39+
ip = "${tencentcloud_gaap_realserver.bar.ip}"
40+
port = 80
41+
weight = 2
42+
}
43+
}
44+
45+
data tencentcloud_gaap_layer4_listeners "foo" {
46+
protocol = "TCP"
47+
proxy_id = "${tencentcloud_gaap_proxy.foo.id}"
48+
listener_id = "${tencentcloud_gaap_layer4_listener.foo.id}"
49+
}

0 commit comments

Comments
 (0)