Skip to content

Latest commit

 

History

History
69 lines (54 loc) · 1.93 KB

File metadata and controls

69 lines (54 loc) · 1.93 KB
page_title subcategory description
criblio_certificate Resource - terraform-provider-criblio
Certificate Resource

criblio_certificate (Resource)

Certificate Resource

Example Usage

resource "criblio_certificate" "my_certificate" {
  ca          = "LS0tLS1CR...FLS0tLS0K"
  cert        = "LS0tLS1CR...FLS0tLS0K"
  description = "Short description of x509 certificate"
  group_id    = "default"
  id          = "myUniqueCertId"
  in_use = [
    "list",
    "of",
    "configurations",
  ]
  passphrase = "SecurityPassphrase"
  priv_key   = "dont-share-this-key"
}

Schema

Required

  • cert (String) Drag/drop or upload host certificate in PEM/Base64 format, or paste its contents here
  • group_id (String) The consumer group to which this instance belongs. Defaults to 'default'.
  • id (String) Unique ID to PATCH
  • priv_key (String, Sensitive)

Optional

  • ca (String) Optionally, drag/drop or upload all CA certificates in PEM/Base64 format. Or, paste certificate contents here. Certificates can be used for client and/or server authentication.
  • description (String)
  • in_use (List of String) List of configurations that reference this certificate
  • passphrase (String, Sensitive)

Import

Import is supported using the following syntax:

In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

import {
  to = criblio_certificate.my_criblio_certificate
  id = jsonencode({
    group_id = "default"
    id = "cert-001"
  })
}

The terraform import command can be used, for example:

terraform import criblio_certificate.my_criblio_certificate '{"group_id": "default", "id": "cert-001"}'