terraform-provider-tencentcloud
terraform-provider-tencentcloud copied to clipboard
`tencentcloud_cdn_domain` Failed on Creation with WILDCARD domain
Description
tencentcloud_cdn_domain
fails to create CDN resource with a wildcard (*) domain.
Terraform Version
Terraform v0.12.24
+ provider.tencentcloud v1.31.1
Affected Resource(s)
- tencentcloud_cdn_domain
Terraform Configuration Files
resource "tencentcloud_cdn_domain" "webserver_cdn" {
domain = "*.my_icp_verified_domain.com"
service_type = "web"
area = "mainland"
origin {
origin_type = "ip"
origin_list = [local.my_cdn_origin_ip]
origin_pull_protocol = "http"
}
https_config {
https_switch = "off"
http2_switch = "off"
ocsp_stapling_switch = "off"
spdy_switch = "off"
verify_client = "off"
}
}
Debug Output
Error: [TencentCloudSDKError] Code=UnauthorizedOperation.CdnDomainRecordNotVerified, Message=cdn domain record not verified, RequestId=bc1c74df-d66f-40a1-82eb-eb33e3feddf8
Expected Behavior
Resource should be created successfully.
Actual Behavior
Encountered error below:
Error: [TencentCloudSDKError] Code=UnauthorizedOperation.CdnDomainRecordNotVerified, Message=cdn domain record not verified, RequestId=bc1c74df-d66f-40a1-82eb-eb33e3feddf8
Steps to Reproduce
-
terraform apply
Hi @jianzhiteh
tencentcloud_cdn_domain
does not currently support wildcard domain, because adding wildcard domain require more strict verification to avoid malicious addition of domain.
We are waiting for the API support before we implement it.