Certificate renewal

akamai_cps_force_certificate_renewal

Trigger a force renewal for a certificate.

Note: Terraform actions require use of Terraform ≥1.14.

action "akamai_cps_force_certificate_renewal" "my_renewal" {
  config {
    enrollment_id                         = 1234
    cancel_pending_changes                = true
    acknowledge_pre_verification_warnings = true
  }
}
resource "akamai_cps_dv_enrollment" "my-enrollment" {
  contract_id                           = "C-0N7RAC7"
  acknowledge_pre_verification_warnings = true
  common_name                           = "my-site.com"
  sans                                  = ["san1.my-site.com", "san2.my-site.com"]
  secure_network                        = "enhanced-tls"
  sni_only                              = true
  timeouts {
    default = "1h"
  }
  admin_contact {
    first_name       = "John"
    last_name        = "Smith"
    phone            = "1-617-555-6789"
    email            = "jsmith@example.com"
    address_line_one = "1234 Main St."
    address_line_two = "Suite 123"
    city             = "Cambridge"
    country_code     = "US"
    organization     = "Main Street Corporation"
    postal_code      = "02142"
    region           = "MA"
    title            = "Director of Operations"
  }
  tech_contact {
    first_name       = "Janet"
    last_name        = "Smithson"
    phone            = "1-617-555-6789"
    email            = "jsmithson@example.com"
    address_line_one = "1234 Main St."
    address_line_two = "Suite 123"
    city             = "Cambridge"
    country_code     = "US"
    organization     = "Main Street Corporation"
    postal_code      = "02142"
    region           = "MA"
    title            = "Director of Platform Services"
  }
  certificate_chain_type = "default"
  csr {
    country_code        = "US"
    city                = "Cambridge"
    organization        = "Main Street Corporation"
    organizational_unit = "IT"
    state               = "MA"
  }
  network_configuration {
    disallowed_tls_versions = ["TLSv1", "TLSv1_1"]
    clone_dns_names   = true
    geography         = "core"
    ocsp_stapling     = "on"
    preferred_ciphers = "ak-akamai-2020q1"
    must_have_ciphers = "ak-akamai-2020q1"
    quic_enabled      = false
  }
  signature_algorithm = "SHA-256"
  organization {
    name             = "Main Street Corporation"
    phone            = "1-617-555-6789"
    address_line_one = "1234 Main St."
    address_line_two = "Suite 123"
    city             = "Cambridge"
    country_code     = "US"
    postal_code      = "02142"
    region           = "MA"
  }

  lifecycle {
    action_trigger {
      events  = [after_create]
      actions = [action.akamai_cps_force_certificate_renewal.my_renewal]
    }
  }
}

action "akamai_cps_force_certificate_renewal" "my_renewal" {
  config {
    enrollment_id                         = 1234
    cancel_pending_changes                = true
    acknowledge_pre_verification_warnings = true
  }
}

Arguments

At a minimum, provide a certificate's enrollment ID to trigger the renewal.

ArgumentRequiredDescription
enrollment_idYour certificate's enrollment ID.
cancel_pending_changesTriggers the cancellation of any pending changes to your enrollment. Defaults to false.
acknowledge_pre_verification_warningsWhen set to true, this acknowledges warnings before certificate verification. Defaults to false

Did this page help you?