Registry / devops / aws-cdk-aws-msk-alpha

aws-cdk-aws-msk-alpha

JSON →
library2.258.0a0pypypi✓ verified 89d ago

The CDK Construct Library for AWS::MSK provides resource definitions for Amazon Managed Streaming for Apache Kafka (MSK). Currently at version 2.258.0a0, it is part of the AWS CDK Alpha module set, which may undergo breaking changes without notice. Requires Python >=3.10.

pip install aws-cdk-aws-msk-alpha
INSTALL
IMPORT
SIG · AWS-CDK-AWS-MSK-AL
A
aws-cdk-aws-msk-alpha
devopspythonv2.258.0a0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cluster
✓ from aws_cdk.aws_msk_alpha import Cluster
✗ from aws_cdk.aws_msk import Cluster
Cluster exists in both stable and alpha; use alpha for latest features.
KafkaVersion
✓ from aws_cdk.aws_msk_alpha import KafkaVersion
BrokerLogging
✓ from aws_cdk.aws_msk_alpha import BrokerLogging

Creates a basic MSK cluster in a VPC with two broker nodes.

from aws_cdk import App, Stack from aws_cdk.aws_msk_alpha import Cluster, KafkaVersion from aws_cdk.aws_ec2 import Vpc, SubnetSelection, SubnetType app = App() stack = Stack(app, "MskStack", env={"region": "us-east-1"}) vpc = Vpc(stack, "MyVpc", max_azs=2) cluster = Cluster( stack, "MyCluster", cluster_name="my-cluster", kafka_version=KafkaVersion.V2_8_1, number_of_broker_nodes=2, vpc=vpc, vpc_subnets=SubnetSelection(subnet_type=SubnetType.PRIVATE_WITH_EGRESS), ) app.synth()
Debug
Known issues
deprecatedAlpha modules break compatibility without notice. Pin exact version in requirements.
fix
Use `aws-cdk-aws-msk-alpha==2.258.0a0` in requirements.txt.
affects: all
breakingSome properties may be renamed or removed in future alpha releases. Always reference the latest CDK API reference.
fix
Check the reference docs at https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_msk_alpha.html.
affects: all
gotchaIAM authentication requires enabling `iam_auth` and setting `encryption_in_transit.client_broker` to `ClientBrokerEncryption.TLS` with plaintext disabled.
fix
Set `encryption_in_transit=EncryptionInTransitConfig(client_broker=ClientBrokerEncryption.TLS)` and `iam_auth=True`.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'aws_cdk.aws_msk_alpha'
Package not installed or wrong Python version.
fix
Run `pip install aws-cdk-aws-msk-alpha` and ensure Python >=3.10.
jsii.errors.JSIIError: Cannot use AWS MSK Alpha resources without subscribing to the AWS CDK Alpha module
Attempting to use alpha constructs without accepting the CDK Alpha module's stability disclaimer.
fix
This is a known SDK limitation; ensure you are using the latest CDK CLI and installed the package correctly.
aws_cdk.aws_msk_alpha.Cluster does not accept 'kafka_version' argument
Using an outdated version of the library where the API was different.
fix
Update the package: `pip install --upgrade aws-cdk-aws-msk-alpha` and adjust code to current API.
Upgrade
Version history
2.258.0a0latest on PyPI · released Jun 4, 2026
Audit
Dependencies
aws-cdk-librequiredCore CDK library; must be compatible version (2.x).
constructsrequiredRequired base class for all CDK constructs.
Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Resources
aws-cdk-aws-msk-alpha — pip install aws-cdk-aws-msk-alpha · libregistry