Skip to content

fix(teo): [125902994]Supplementary instructions for use #3448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3448.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_teo_acceleration_domain: Documentation supplementary instructions.
```
48 changes: 48 additions & 0 deletions tencentcloud/services/teo/resource_tc_teo_acceleration_domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Provides a resource to create a TEO acceleration domain

~> **NOTE:** Only `origin_type` is `IP_DOMAIN` can set `host_header`.

~> **NOTE:** If you use a third-party storage bucket configured for back-to-source, you need to ignore changes to `SecretAccessKey`.

Example Usage

```hcl
Expand All @@ -24,6 +26,52 @@ resource "tencentcloud_teo_acceleration_domain" "example" {
}
```

Back-to-source configuration using a third-party storage bucket.
SecretAccessKey is sensitive data and can no longer be queried in plain text, so changes to SecretAccessKey need to be ignored.

```hcl
resource "tencentcloud_teo_acceleration_domain" "acceleration_domain" {
domain_name = "cos.demo.cn"
http_origin_port = 80
https_origin_port = 443
ipv6_status = "follow"
origin_protocol = "FOLLOW"
status = "online"
zone_id = "zone-39quuimqg8r6"

origin_info {
backup_origin = null
origin = "example.s3.ap-northeast.amazonaws.com"
origin_type = "AWS_S3"
private_access = "on"
vod_bucket_id = null
vod_origin_scope = null

private_parameters {
name = "AccessKeyId"
value = "aaaaaaa"
}
private_parameters {
name = "SecretAccessKey"
value = "bbbbbbb"
}
private_parameters {
name = "SignatureVersion"
value = "v4"
}
private_parameters {
name = "Region"
value = "us-east1"
}
}
lifecycle {
ignore_changes = [
origin_info[0].private_parameters[1].value,
]
}
}
```

Import

TEO acceleration domain can be imported using the id, e.g.
Expand Down
49 changes: 49 additions & 0 deletions website/docs/r/teo_acceleration_domain.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Provides a resource to create a TEO acceleration domain

~> **NOTE:** Only `origin_type` is `IP_DOMAIN` can set `host_header`.

~> **NOTE:** If you use a third-party storage bucket configured for back-to-source, you need to ignore changes to `SecretAccessKey`.

## Example Usage

```hcl
Expand All @@ -35,6 +37,53 @@ resource "tencentcloud_teo_acceleration_domain" "example" {
}
```

### Back-to-source configuration using a third-party storage bucket.

SecretAccessKey is sensitive data and can no longer be queried in plain text, so changes to SecretAccessKey need to be ignored.

```hcl
resource "tencentcloud_teo_acceleration_domain" "acceleration_domain" {
domain_name = "cos.demo.cn"
http_origin_port = 80
https_origin_port = 443
ipv6_status = "follow"
origin_protocol = "FOLLOW"
status = "online"
zone_id = "zone-39quuimqg8r6"

origin_info {
backup_origin = null
origin = "example.s3.ap-northeast.amazonaws.com"
origin_type = "AWS_S3"
private_access = "on"
vod_bucket_id = null
vod_origin_scope = null

private_parameters {
name = "AccessKeyId"
value = "aaaaaaa"
}
private_parameters {
name = "SecretAccessKey"
value = "bbbbbbb"
}
private_parameters {
name = "SignatureVersion"
value = "v4"
}
private_parameters {
name = "Region"
value = "us-east1"
}
}
lifecycle {
ignore_changes = [
origin_info[0].private_parameters[1].value,
]
}
}
```

## Argument Reference

The following arguments are supported:
Expand Down
Loading