Registry /
aws / aws-cdk-aws-bedrock-alpha
Install & Compatibility
Where this runs
tested against v2.260.0a0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 363.5MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 17.7s · import 0.000s · 364MB
401MB installed
● package 401MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Bedrock
✓ from aws_cdk.aws_bedrock_alpha import Bedrock
✗ from aws_cdk.aws_bedrock_alpha import Bedrock
Minimal stack creating a Bedrock agent with a foundation model.
from aws_cdk import App, Stack
from aws_cdk.aws_bedrock_alpha import FoundationModel, Bedrock
app = App()
stack = Stack(app, "BedrockStack")
# Use a foundation model (requires Bedrock access in region)
model = FoundationModel.from_foundation_model_id(
stack, "Model",
foundation_model_id="anthropic.claude-v2"
)
# Create a Bedrock agent
agent = Agent(
stack, "MyAgent",
foundation_model=model,
instruction="You are a helpful assistant."
)
app.synth()
Debug
Known issues
breakingAlpha module API is unstable — methods and properties may change without notice in new versions. Pin to a specific version in production.fixUse `aws-cdk-aws-bedrock-alpha==2.252.0a0` in requirements.txt.
affects: all alpha versions (2.x.a0)
deprecatedFromFoundationModelId may be deprecated in favor of new model selection patterns in future releases.fixCheck CDK changelog for deprecation notices and migrate to suggested method.
affects: 2.240.0a0 - 2.252.0a0
gotchaYou must have Bedrock model access enabled in your AWS account for the chosen region. CDK deployment will succeed but runtime calls will fail.fixRequest model access via AWS console or CLI before deploying.
affects: all
Upgrade
Version history
2.260.0a0latest on PyPI · released Jun 16, 2026
Audit
Dependencies
aws-cdk-librequiredRequired for CDK core constructs and infrastructure
constructsrequiredRequired for construct base class