ibm_container_alb_cert

Create, update or delete a Application load balancer certificate.

Example Usage

In the following example, you can configure a alb:

resource ibm_container_alb_cert cert {
  cert_crn    = "crn:v1:bluemix:public:cloudcerts:us-south:a/e9021a4dc47e3d:faadea8e-a7f4-408f-8b39-2175ed17ae62:certificate:3f2ab474fbbf9564582"
  secret_name = "test-sec"
  cluster     = "myCluster"
}

Timeouts

ibm_container_alb_cert provides the following Timeouts configuration options:

  • create - (Default 5 minutes) Used for creating Instance.
  • update - (Default 5 minutes) Used for updating Instance.

Argument Reference

The following arguments are supported:

  • cert_crn - (Required, string) The certificate CRN.
  • cluster_id - (Required, string) The cluster ID.
  • secret_name - (Required, string) The name of the ALB certificate secret.
  • region - (Optional, string) The region of ALB certificate.

Attribute Reference

The following attributes are exported:

  • id - The ALB cert ID. The id is composed of <cluster_name_id>/<secret_name>.
  • domain_name - The Domain name of the certificate.
  • expires_on - The Expiry date of the certificate.
  • issuer_name - The Issuer name of the certificate.
  • cluster_crn - The cluster crn.
  • cloud_cert_instance_id - Cloud Certificate instance ID from which certificate is downloaded.

Import

ibm_container_alb_cert can be imported using cluster_id, secret_name eg

$ terraform import ibm_container_alb_cert.example 166179849c9a469581f28939874d0c82/mysecret