» alicloud_slb_ca_certificate

A Load Balancer CA Certificate is used by the listener of the protocol https.

For information about slb and how to use it, see What is Server Load Balancer.

For information about CA Certificate and how to use it, see Configure CA Certificate.

» Example Usage

  • using CA certificate content
# create a CA certificate
resource "alicloud_slb_ca_certificate" "foo" {
  name           = "tf-testAccSlbCACertificate"
  ca_certificate = "-----BEGIN CERTIFICATE-----\nMIIDRjCCAq+gAwIBAgIJAJnI******90EAxEG/bJJyOm5LqoiA=\n-----END CERTIFICATE-----"
  • using CA certificate file
resource "alicloud_slb_ca_certificate" "foo-file" {
  name           = "tf-testAccSlbCACertificate"
  ca_certificate = "${file("${path.module}/ca_certificate.pem")}"

» Argument Reference

The following arguments are supported:

  • name - (Optional) Name of the CA Certificate.
  • ca_certificate - (Required, ForceNew) the content of the CA certificate.
  • resource_group_id - (Optional, ForceNew, Available in 1.58.0+) The Id of resource group which the slb_ca certificate belongs.
  • tags - (Optional, Available in v1.66.0+) A mapping of tags to assign to the resource. ## Attributes Reference

The following attributes are exported:

  • id - The Id of CA Certificate .

» Import

Server Load balancer CA Certificate can be imported using the id, e.g.

$ terraform import alicloud_slb_ca_certificate.example abc123456