GuideReference
Guide

Deployments

akamai_cps_deployments

Get deployed certificates for a specific enrollment.

data "akamai_cps_deployments" "my-deployments" {
  enrollment_id = 12345
}

output "my-deployments" {
  value = data.akamai_cps_deployments.my-deployments
}
Changes to Outputs:
  + my-deployments = {
      + auto_renewal_start_time      = "2025-01-24T10:13:53Z"
      + enrollment_id                = 12345
      + expiry_date                  = "2025-02-13T10:13:53Z"
      + id                           = "12345"
      + production_certificate_ecdsa = null
      + production_certificate_rsa   = <<-EOT
            -----BEGIN CERTIFICATE-----
            nMIID <sample - removed for readability> .... nMweq
            -----END CERTIFICATE-----
        EOT
      + staging_certificate_ecdsa    = null
      + staging_certificate_rsa      = <<-EOT
            -----BEGIN CERTIFICATE-----
            nMIID <sample - removed for readability> .... nMweq
            -----END CERTIFICATE-----
        EOT
    }

Argument

Pass an enrollment_id in the body of the data block.

Attributes

Returned to you are data for the ECDSA algorithm, the RSA algorithm, or both depending on the type and number of certificates you uploaded.

Attribute Description
auto_renewal_start_time The ISO 8601 timestamp indicating when the automatic renewal starts.

For domain-validated (DV) certificates, the Certificate Provisioning System (CPS) automatically starts the renewal process 90 days before the current certificate expires. It then automatically deploys the renewed certificate when it receives it from the certificate authority (CA).

For third-party certificates, the CPS creates a change. This change is needed to get a new CSR and upload the new certificate. Use the akamai_cps_enrollment data source to view pending changes.
enrollment_id The enrollment ID.
id The data source ID.
expiry_date The ISO 8601 timestamp indicating when the certificate expires.
production_certificate_ecdsa The ECDSA certificate deployed on the production network.
production_certificate_rsa The RSA certificate deployed on the production network.
staging_certificate_ecdsa The ECDSA certificate deployed on the staging network.
staging_certificate_rsa The RSA certificate deployed on the staging network.