Skip to content

ImportCertificateAuthorityCertificate

Source: src/AWS/ACMPCA/ImportCertificateAuthorityCertificate.ts

Runtime binding for acm-pca:ImportCertificateAuthorityCertificate.

Bind a CertificateAuthority inside a function runtime to install the CA’s signed certificate — the final step of the activation flow (fetch CSR via GetCertificateAuthorityCsr, sign it, import). This enables workflows where the CA’s CSR is signed by an on-premises or external parent CA at runtime. Provide ACMPCA.ImportCertificateAuthorityCertificateHttp on the Function effect to implement the binding.

// init
const importCaCertificate =
yield* ACMPCA.ImportCertificateAuthorityCertificate(ca);
// runtime
yield* importCaCertificate({
Certificate: new TextEncoder().encode(signedCertPem),
CertificateChain: new TextEncoder().encode(chainPem),
});