skillfed

aws-cdk.aws-kms

The CDK Construct Library for AWS::KMS

aws-cdk-aws-kms v1.204.0 184.0K downloads/30d#10,049 on PyPI12,868
Permissive license Apache-2.0 Active released

What it is and what it does

This is the AWS CDK Construct Library for KMS, a Python module that lets you define AWS Key Management Service keys, aliases, and access policies using infrastructure-as-code. It wraps KMS API operations into high-level constructs so you can create encryption keys, set rotation policies, manage aliases, and control key access through IAM and key policies—all declaratively within your CDK application.

The package depends on aws-cdk.core, aws-cdk.aws-iam, constructs, jsii, and several other CDK modules. It is classified as Inactive (Development Status 7) because AWS CDK v1 reached End-of-Support on 2023-06-01; the package is no longer being updated, and AWS recommends migrating to AWS CDK v2 for ongoing support and new features.

Use it for:

  • Define and provision KMS keys with rotation enabled as part of an AWS CDK stack deployment.
  • Create KMS key aliases and manage key policies to control which IAM principals can encrypt, decrypt, or administer keys.
  • Share KMS keys between multiple CDK stacks by passing key constructs across stack boundaries.
  • Import existing KMS keys (by ARN or alias) into a CDK application to reference them in other constructs without recreating them.
  • Specify key spec and key usage (e.g., ECC_SECG_P256K1 for signing) when creating keys with non-default cryptographic properties.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides AWS CDK constructs for defining and managing AWS Key Management Service (KMS) keys, aliases, and key policies in infrastructure-as-code.

No—do not install for new projects. This package is end-of-support as of 2023-06-01 and classified as Inactive. AWS CDK v2 is the current supported version and should be used instead. Only consider installing if you are maintaining an existing v1 CDK application that cannot yet migrate, and understand that you will not receive updates or security patches.

Install

aws-cdk-aws-kms on PyPI

pip

pip install aws-cdk-aws-kms

uv

uv add aws-cdk-aws-kms

poetry

poetry add aws-cdk-aws-kms

Installing aws-cdk.aws-kms

Before you install

Low friction install with 8 runtime dependencies. Active repository with recent commits, but package is classified as Inactive (Development Status 7) and reached End-of-Support on 2023-06-01; users should migrate to AWS CDK v2.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.

Quickstart

pip install aws-cdk.aws-kms

import aws_cdk as cdk
from aws_cdk import aws_kms as kms

class MyStack(cdk.Stack):
    def __init__(self, scope, id, **kwargs):
        super().__init__(scope, id, **kwargs)
        key = kms.Key(self, "MyKey", enable_key_rotation=True)
        key.add_alias("alias/my-key")

Requires AWS CDK v1 runtime; this package is end-of-support as of 2023-06-01 and AWS CDK v2 is the current supported version.

Verify before relying

  • Whether existing v1 projects can safely remain on this package or if migration to v2 is mandatory for security/stability.
  • Performance characteristics or limits when managing large numbers of KMS keys or aliases through CDK constructs.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (~=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 8 — aws-cdk.aws-iam, aws-cdk.cloud-assembly-schema, aws-cdk.core, aws-cdk.cx-api, constructs, jsii, publication, typeguard
Maintenance actively maintained — 1,152 days since the last release
Last repo commit
First released
Downloads 184,031/month — #10,049 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: aws_cdk.aws_kms-1.204.0-py3-none-any.whl

Development Status :: 7 - InactiveFramework :: AWS CDKFramework :: AWS CDK :: 1Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Tags

AWS KMS key management CDKKMS construct library PythonAWS CDK encryption keyKMS key policy automationinfrastructure as code KMSAWS CDK key rotationKMS alias management
aws-cdkend-of-supportinfrastructure-as-code

More Build Tools packages