Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 1.75 KB

corp_cloudwaf_certificate.md

File metadata and controls

64 lines (48 loc) · 1.75 KB
page_title subcategory description
sigsci_corp_cloudwaf_certificate Resource - terraform-provider-sigsci

sigsci_corp_cloudwaf_certificate (Resource)

Example Usage

resource "sigsci_corp_cloudwaf_certificate" "test_corp_cloudwaf_certificate" {
  name              = "Test Cloud WAF Certificate"
  certificate_body  = <<CERT
-----BEGIN CERTIFICATE-----
[encoded certificate]
-----END CERTIFICATE-----
CERT
  certificate_chain = <<CHAIN
-----BEGIN CERTIFICATE-----
[encoded certificate chain]
-----END CERTIFICATE-----
CHAIN
  private_key       = <<PRIVATEKEY
-----BEGIN PRIVATE KEY-----
[encoded privatekey]]
----END PRIVATE KEY-----
PRIVATEKEY
}

Schema

Required

  • certificate_body (String) Body of the certificate in PEM format
  • name (String) Friendly name to identify a CloudWAF certificate
  • private_key (String, Sensitive) Private key of the certificate in PEM format - must be unencrypted

Optional

  • certificate_chain (String) Certificate chain in PEM format

Read-Only

  • common_name (String) Common name of the uploaded certificate
  • expires_at (String) TimeStamp for when certificate expires in RFC3339 date time format
  • fingerprint (String) SHA1 fingerprint of the certififcate
  • id (String) The ID of this resource.
  • status (String) Current status of the certificate - could be one of "unknown", "active", "pendingverification", "expired", "error"
  • subject_alternative_names (Set of String) Subject alternative names from the uploaded certificate

Import

Import is supported using the following syntax:

terraform import sigsci_corp_cloudwaf_certificate.test id