pulumi / pulumi-alicloud

An AliCloud Pulumi resource package, providing multi-language access to AliCloud
Apache License 2.0
64 stars 6 forks source link

alicloud:dcdn/domain:Domain error with cert_type cas(Certificate Management Service) required SSLPri #352

Open williamwangis opened 1 year ago

williamwangis commented 1 year ago

What happened?

Pulumi runtime: Python reference to https://www.pulumi.com/registry/packages/alicloud/api-docs/dcdn/domain/

Create a Dynamic CDN domain and got error if cert_type is cas(Certificate Management Service)

updating urn:pulumi:prod::<MASKED>::alicloud:dcdn/domain:Domain::<MASKED>: [ERROR] terraform-provider-alicloud@v1.197.0/alicloud/resource_alicloud_dcdn_domain.go:324: Resource speeddcdn.v16cp.me SetDcdnDomainCertificate Failed!!! [SDK alibaba-cloud-sdk-go ERROR]:
    SDKError:
       StatusCode: 400
       Code: SSLPri.MissingParameter
       Message: code: 400, The SSLPri parameter is required. request id: <MASKED>
       Data: {"Code":"SSLPri.MissingParameter","HostId":"dcdn.aliyuncs.com","Message":"The SSLPri parameter is required.","Recommend":"https://next.api.aliyun.com/troubleshoot?q=SSLPri.MissingParameter\u0026product=dcdn","RequestId":"<MASKED>

Expected Behavior

create DCDN with cert_type: cas and cert_name, should not required private SSL

Steps to reproduce

create Alibaba Cloud DCDN in Python code and run pulumi up

Output of pulumi about

LI Version 3.54.0 Go Version go1.20 Go Compiler gc

Plugins NAME VERSION alicloud 3.30.0 aws 5.21.1 kubernetes 3.23.1 python unknown

Host OS darwin Version 12.4 Arch arm64

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

iwahbe commented 1 year ago

Hey @williamwangis. Thanks for opening an issue!

My reading of the docs is that if you use any cert type, you need to specify a private SSL.

williamwangis commented 1 year ago

if I need to specify a private SSL, why I need to use cas(Certificate Management Service) ......

iwahbe commented 1 year ago

if I need to specify a private SSL, why I need to use cas(Certificate Management Service) ......

I'm not sure, I'm not super familiar with alicloud. I could also be reading the docs wrong. Can you post your python code so I can reproduce locally.