Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • kms_asymmetric_encryption_key
          • kms_asymmetric_encryption_key_iam_binding
          • kms_asymmetric_encryption_key_iam_member
          • kms_asymmetric_signature_key
          • kms_asymmetric_signature_key_iam_binding
          • kms_asymmetric_signature_key_iam_member
          • kms_secret_ciphertext
          • kms_symmetric_key
          • kms_symmetric_key_iam_binding
          • kms_symmetric_key_iam_member

In this article:

  • Example usage
  • Arguments & Attributes Reference
  • Import
  1. Terraform reference
  2. Resources
  3. Key Management Service
  4. Resources
  5. kms_asymmetric_encryption_key

yandex_kms_asymmetric_encryption_key (Resource)

Written by
Yandex Cloud
Updated at February 12, 2026
  • Example usage
  • Arguments & Attributes Reference
  • Import

An asymmetric KMS key that may contain several versions of the cryptographic material.

Example usageExample usage

//
// Create a new KMS Assymetric Encryption Key.
//
resource "yandex_kms_asymmetric_encryption_key" "key-a" {
  name                 = "example-asymetric-encryption-key"
  description          = "description for key"
  encryption_algorithm = "RSA_2048_ENC_OAEP_SHA_256"
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • asymmetric_encryption_key_id (String). ID of the asymmetric KMS key to return.
    To get the ID of an asymmetric KMS key use a [AsymmetricEncryptionKeyService.List] request.
  • created_at (Read-Only) (String). Time when the key was created.
  • deletion_protection (Bool). Flag that inhibits deletion of the key
  • description (String). Description of the key.
  • encryption_algorithm (String). Asymmetric Encryption Algorithm ID.
  • folder_id (String). ID of the folder that the key belongs to.
  • id (String). ID of the asymmetric KMS key to return.
    To get the ID of an asymmetric KMS key use a [AsymmetricEncryptionKeyService.List] request.
  • labels (Map Of String). Custom labels for the key as key:value pairs. Maximum 64 per key.
  • name (String). Name of the key.
  • status (String). Current status of the key.

ImportImport

The resource can be imported by using their resource ID. For getting it you can use Yandex Cloud Web Console or Yandex Cloud CLI.

# terraform import yandex_kms_asymmetric_encryption_key.<resource Name> <resource Id>
terraform import yandex_kms_asymmetric_encryption_key.key-a abj7u**********j38cd

Was the article helpful?

Previous
kms_symmetric_key
Next
kms_asymmetric_encryption_key_iam_binding
© 2026 Direct Cursus Technology L.L.C.