File tree Expand file tree Collapse file tree 3 files changed +100
-0
lines changed
tencentcloud/services/teo Expand file tree Collapse file tree 3 files changed +100
-0
lines changed Original file line number Diff line number Diff line change 1+ ```release-note:enhancement
2+ resource/tencentcloud_teo_acceleration_domain: Documentation supplementary instructions.
3+ ```
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ Provides a resource to create a TEO acceleration domain
44
55~ > ** NOTE:** Only ` origin_type ` is ` IP_DOMAIN ` can set ` host_header ` .
66
7+ ~ > ** NOTE:** If you use a third-party storage bucket configured for back-to-source, you need to ignore changes to ` SecretAccessKey ` .
8+
79Example Usage
810
911``` hcl
@@ -24,6 +26,52 @@ resource "tencentcloud_teo_acceleration_domain" "example" {
2426}
2527```
2628
29+ Back-to-source configuration using a third-party storage bucket.
30+ SecretAccessKey is sensitive data and can no longer be queried in plain text, so changes to SecretAccessKey need to be ignored.
31+
32+ ``` hcl
33+ resource "tencentcloud_teo_acceleration_domain" "acceleration_domain" {
34+ domain_name = "cos.demo.cn"
35+ http_origin_port = 80
36+ https_origin_port = 443
37+ ipv6_status = "follow"
38+ origin_protocol = "FOLLOW"
39+ status = "online"
40+ zone_id = "zone-39quuimqg8r6"
41+
42+ origin_info {
43+ backup_origin = null
44+ origin = "example.s3.ap-northeast.amazonaws.com"
45+ origin_type = "AWS_S3"
46+ private_access = "on"
47+ vod_bucket_id = null
48+ vod_origin_scope = null
49+
50+ private_parameters {
51+ name = "AccessKeyId"
52+ value = "aaaaaaa"
53+ }
54+ private_parameters {
55+ name = "SecretAccessKey"
56+ value = "bbbbbbb"
57+ }
58+ private_parameters {
59+ name = "SignatureVersion"
60+ value = "v4"
61+ }
62+ private_parameters {
63+ name = "Region"
64+ value = "us-east1"
65+ }
66+ }
67+ lifecycle {
68+ ignore_changes = [
69+ origin_info[0].private_parameters[1].value,
70+ ]
71+ }
72+ }
73+ ```
74+
2775Import
2876
2977TEO acceleration domain can be imported using the id, e.g.
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ Provides a resource to create a TEO acceleration domain
1515
1616~ > ** NOTE:** Only ` origin_type ` is ` IP_DOMAIN ` can set ` host_header ` .
1717
18+ ~ > ** NOTE:** If you use a third-party storage bucket configured for back-to-source, you need to ignore changes to ` SecretAccessKey ` .
19+
1820## Example Usage
1921
2022``` hcl
@@ -35,6 +37,53 @@ resource "tencentcloud_teo_acceleration_domain" "example" {
3537}
3638```
3739
40+ ### Back-to-source configuration using a third-party storage bucket.
41+
42+ SecretAccessKey is sensitive data and can no longer be queried in plain text, so changes to SecretAccessKey need to be ignored.
43+
44+ ``` hcl
45+ resource "tencentcloud_teo_acceleration_domain" "acceleration_domain" {
46+ domain_name = "cos.demo.cn"
47+ http_origin_port = 80
48+ https_origin_port = 443
49+ ipv6_status = "follow"
50+ origin_protocol = "FOLLOW"
51+ status = "online"
52+ zone_id = "zone-39quuimqg8r6"
53+
54+ origin_info {
55+ backup_origin = null
56+ origin = "example.s3.ap-northeast.amazonaws.com"
57+ origin_type = "AWS_S3"
58+ private_access = "on"
59+ vod_bucket_id = null
60+ vod_origin_scope = null
61+
62+ private_parameters {
63+ name = "AccessKeyId"
64+ value = "aaaaaaa"
65+ }
66+ private_parameters {
67+ name = "SecretAccessKey"
68+ value = "bbbbbbb"
69+ }
70+ private_parameters {
71+ name = "SignatureVersion"
72+ value = "v4"
73+ }
74+ private_parameters {
75+ name = "Region"
76+ value = "us-east1"
77+ }
78+ }
79+ lifecycle {
80+ ignore_changes = [
81+ origin_info[0].private_parameters[1].value,
82+ ]
83+ }
84+ }
85+ ```
86+
3887## Argument Reference
3988
4089The following arguments are supported:
You can’t perform that action at this time.
0 commit comments