Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
terraform: 1.14.6
tencentcloud: 1.82.74
Affected Resource(s)
tencentcloud_css_domain
Terraform Configuration Files
resource "tencentcloud_css_domain" "default" {
provider = tencentcloud.stream
for_each = var.live_domains
domain_name = each.key
domain_type = try(each.value.domain_type, 1)
enable = try(each.value.enable, true)
is_delay_live = try(each.value.is_delay_live, 0)
is_mini_program_live = try(each.value.is_mini_program_live, 0)
play_type = try(each.value.play_type, 2)
verify_owner_type = try(each.value.verify_owner_type, "dnsCheck")
}
Debug Output
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following
symbols:
+ create
Terraform will perform the following actions:
# module.stream_collector.tencentcloud_css_domain.default[""] will be created
+ resource "tencentcloud_css_domain" "default" {
+ domain_name = ""
+ domain_type = 1
+ enable = false
+ id = (known after apply)
+ is_delay_live = 0
+ is_mini_program_live = 0
+ play_type = 2
+ verify_owner_type = "dnsCheck"
}
# module.stream_collector.tencentcloud_css_domain.default[""] will be created
+ resource "tencentcloud_css_domain" "default" {
+ domain_name = ""
+ domain_type = 1
+ enable = true
+ id = (known after apply)
+ is_delay_live = 0
+ is_mini_program_live = 0
+ play_type = 2
+ verify_owner_type = "dbCheck"
}
Plan: 2 to add, 0 to change, 0 to destroy.
module.stream_collector.tencentcloud_css_domain.default[""]: Creating...
module.stream_collector.tencentcloud_css_domain.default[""]: Creating...
╷
│ Error: [TencentCloudSDKError] Code=FailedOperation.DomainNeedVerifyOwner, Message=need to verify the domain owner., RequestId=1d523052-8898-4344-aaf8-e793433e7205
│
│ with module.stream_collector.tencentcloud_css_domain.default[""],
│ on ../modules/cloud-streaming-services/domain.tf line 1, in resource "tencentcloud_css_domain" "default":
│ 1: resource "tencentcloud_css_domain" "default" {
│
╵
╷
│ Error: [TencentCloudSDKError] Code=FailedOperation.DomainNeedVerifyOwner, Message=need to verify the domain owner., RequestId=527d4572-650d-4a68-bd71-146742ca88d2
│
│ with module.stream_collector.tencentcloud_css_domain.default[""],
│ on ../modules/cloud-streaming-services/domain.tf line 1, in resource "tencentcloud_css_domain" "default":
│ 1: resource "tencentcloud_css_domain" "default" {
│
╵
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
問題描述
預期行為是建立 css domain,
我理解在 UI 操作上需要先行驗證 Domain ownership,
但是我並沒有任何 resource 可以取得 cssauth 的 txt record value,
我曾經嘗試使用 data "tencentcloud_subdomain_validate_status" 先行驗證 txt record,
但是得到以下錯誤
│ Error: [TencentCloudSDKError] Code=UnsupportedOperation, Message=Unsupported Operation, RequestId=0bc399cd-fde5-4181-8698-a92b1af481ba
│
│ with data.tencentcloud_subdomain_validate_status.subdomain_validate_status,
│ on cloud-streaming-service.tf line 30, in data "tencentcloud_subdomain_validate_status" "subdomain_validate_status":
│ 30: data "tencentcloud_subdomain_validate_status" "subdomain_validate_status" {
│
╵
Community Note
Terraform Version
terraform: 1.14.6
tencentcloud: 1.82.74
Affected Resource(s)
tencentcloud_css_domain
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform applyImportant Factoids
References
問題描述
預期行為是建立 css domain,
我理解在 UI 操作上需要先行驗證 Domain ownership,
但是我並沒有任何 resource 可以取得 cssauth 的 txt record value,
我曾經嘗試使用 data "tencentcloud_subdomain_validate_status" 先行驗證 txt record,
但是得到以下錯誤