Skip to content
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

Support for Free SSL Certificates in Huawei Cloud CCM Terraform Provider #6264

Open
francotel opened this issue Jan 26, 2025 · 0 comments
Open

Comments

@francotel
Copy link

Feature Request: Support for Free SSL Certificates in Huawei Cloud CCM Terraform Provider

Current Terraform Version

Terraform v1.9.8

Use-cases

The goal is to create a free SSL certificate using Huawei Cloud's Cloud Certificate Manager (CCM) through the official Terraform provider. This functionality is currently available via Huawei Cloud's web interface but seems to be unsupported in the current Terraform provider implementation.

This use case is critical for users looking to fully automate their cloud infrastructure management using Terraform while minimizing costs.

Attempted Solutions

I attempted to create an SSL certificate using the following Terraform code:

variable "cert_brand" {
  default = "DigiCert"
}

variable "cert_type" {
  default = "DV_SSL_CERT_BASIC"
}

resource "huaweicloud_ccm_certificate" "ssl" {
  cert_brand     = var.cert_brand
  cert_type      = var.cert_type
  domain_type    = "SINGLE_DOMAIN"
  effective_time = 1
  domain_numbers = 1
}

However, there seems to be no option to specify the creation of a free certificate (which is possible via the Huawei Cloud web interface). The provider only supports paid certificates like those from DigiCert.

Proposal

I suggest adding support to the huaweicloud_ccm_certificate resource to enable the creation of free SSL certificates. This could be achieved by introducing a new value for the cert_brand parameter (e.g., FREE_CERT) or a similar adjustment.

For example:

resource "huaweicloud_ccm_certificate" "ssl_free" {
  cert_brand     = "FREE_CERT"
  cert_type      = "DV_SSL_CERT_BASIC"
  domain_type    = "SINGLE_DOMAIN"
  effective_time = 1
  domain_numbers = 1
}

This enhancement would allow for seamless automation of certificate management for projects requiring quick and cost-free solutions.

References

I could not find any related issues in the repository. However, if this limitation is already under discussion, I would appreciate any references or updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant