Resource: aws_kms_custom_key_store

Terraform resource for managing an AWS KMS (Key Management) Custom Key Store.

Example Usage

Basic Usage

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")
}

Argument Reference

The following arguments are required:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import KMS (Key Management) Custom Key Store using the id. For example:

import {
  to = aws_kms_custom_key_store.example
  id = "cks-5ebd4ef395a96288e"
}

Using terraform import, import KMS (Key Management) Custom Key Store using the id. For example:

% terraform import aws_kms_custom_key_store.example cks-5ebd4ef395a96288e