Creates a basic AWS KMS Custom Key Store using a CloudHSM cluster ID, a custom name, a key store password, and a trust anchor certificate.

Terraform Template

resource "aws_kms_custom_key_store" "test" {
  cloud_hsm_cluster_id = "var.cloud_hsm_cluster_id"
  custom_key_store_name = "kms-custom-key-store-test"
  key_store_password = "noplaintextpasswords1"
  trust_anchor_certificate = file("anchor-certificate.crt")
}