Skip to content

googlePrivatecaCertificateAuthority

Get info about a Google CAS Certificate Authority.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGooglePrivatecaCertificateAuthorityDefault =
  new google.dataGooglePrivatecaCertificateAuthority.DataGooglePrivatecaCertificateAuthority(
    this,
    "default",
    {
      certificate_authority_id: "ca-id",
      location: "us-west1",
      pool: "pool-name",
    }
  );
new cdktf.TerraformOutput(this, "csr", {
  value: dataGooglePrivatecaCertificateAuthorityDefault.pemCsr,
});

Argument Reference

The following arguments are supported:

  • location - (Required) The location the certificate authority exists in.

  • pool - (Required) The name of the pool the certificate authority belongs to.

  • certificateAuthorityId - (Required) ID of the certificate authority.


  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Attributes Reference

See google_privateca_certificate_authority resource for details of the available attributes.

  • pemCsr - The PEM-encoded signed certificate signing request (CSR). This is only set on subordinate certificate authorities that are awaiting user activation.