Skip to content

InitializeCluster

Source: src/AWS/CloudHSMV2/InitializeCluster.ts

Runtime binding for the InitializeCluster operation (IAM action cloudhsm:InitializeCluster).

Claims an UNINITIALIZED CloudHSM cluster by submitting the cluster certificate (the cluster’s CSR signed by your issuing CA) and the CA’s root certificate — lets a Function automate the activation ceremony around your CA. The certificates are public key material. Provide the implementation with Effect.provide(AWS.CloudHSMV2.InitializeClusterHttp).

const initializeCluster = yield* AWS.CloudHSMV2.InitializeCluster();
const result = yield* initializeCluster({
ClusterId: clusterId,
SignedCert: signedClusterCertPem,
TrustAnchor: issuingCaRootPem,
});
// result.State === "INITIALIZE_IN_PROGRESS"