terraform-provider-tencentcloud icon indicating copy to clipboard operation
terraform-provider-tencentcloud copied to clipboard

tencentcloud_cdn_domain unable to create new CDN resource.

Open jianzhiteh opened this issue 4 years ago • 2 comments

Hi, we noticed that tencentcloud_cdn_domain is no longer able to be used to create CDN resource successfully. We are using the same source code we used to deployed some of our CDN sites previously.

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

v0.13.3

Affected Resource(s)

  • tencentcloud_cdn_domain

Terraform Configuration Files

resource "tencentcloud_cdn_domain" "webserver_cdn" {
  area           = "mainland"
  domain         = "our_domain"
  full_url_cache = false
  # project_id     = our_project_id
  service_type   = "web"

  https_config {
    http2_switch         = "on"
    https_switch         = "on"
    ocsp_stapling_switch = "on"
    spdy_switch          = "on"
    verify_client        = "off"

    server_certificate_config {
        certificate_content = <<~EOT
        OUR CERT HERE
          EOT
        private_key         = <<~EOT
        OUR KEY HERE
          EOT
      }
  }

  origin {
    origin_list          = [
        "1.2.3.4",
        "5.6.7.8",
      ]
    origin_pull_protocol = "http"
    origin_type          = "ip"
    server_name          = "our_domain"
  }
}

Debug Output

Panic Output

Expected Behavior

CDN resource should be created successfully.

Actual Behavior

Error: [TencentCloudSDKError] Code=FailedOperation.CdnConfigError, Message=feature not supported by lego, RequestId=xxxx

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000

jianzhiteh avatar Jan 14 '21 10:01 jianzhiteh

@jianzhiteh change spdy_switch = "off"

cyberHermanwang avatar Jan 14 '21 10:01 cyberHermanwang

@jianzhiteh According to strategies of the CDN team, this parameter spdy_switch is supported with white-list customer. If you do not need to use this, try to set it with "off".

gailwang avatar Jan 15 '21 11:01 gailwang