Registry / aws / aws-cdk-aws-apprunner-alpha

aws-cdk-aws-apprunner-alpha

JSON →
library2.260.0a0pypypi✓ verified 86d ago

Alpha version of the CDK Construct Library for AWS App Runner, allowing deployment of containerized web applications and APIs. Current version 2.251.0a0, release follows CDK releases.

pip install aws-cdk-aws-apprunner-alpha
INSTALL
IMPORT
SIG · AWS-CDK-AWS-APPRUN
A
aws-cdk-aws-apprunner-alpha
awspythonv2.260.0a0
Install
17.2s avg
Import
Disk
399MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 361.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 17.2s · import 0.000s · 362MB
399MB installed
● package 399MB
Code
Verified usage

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

alpha
import aws_cdk.aws_apprunner_alpha as apprunner_alpha
from aws_cdk import aws_apprunner_alpha
Makes symbol resolution ambiguous; use recommended alias pattern.
AppRunnerService
from aws_cdk.aws_apprunner_alpha import AppRunnerService
from aws_cdk.aws_apprunner import AppRunnerService
App Runner in CDK is only available via alpha module; stable module does not exist.

Minimal CDK stack creating an App Runner service from a GitHub repository.

import aws_cdk as cdk from aws_cdk.aws_apprunner_alpha import AppRunnerService, Source, SourceCodeBuild class MyStack(cdk.Stack): def __init__(self, scope, id, **kwargs): super().__init__(scope, id, **kwargs) AppRunnerService(self, 'Service', source=Source.from_asset({ 'location': './app', 'source_code_provider': SourceCodeBuild({ 'repository': 'https://github.com/example/repo', 'branch': 'main' }) }) ) app = cdk.App() MyStack(app, 'MyAppRunnerStack') app.synth()
Debug
Known issues
breakingModule prefix changed from @aws-cdk/aws-apprunner-alpha to aws-cdk-aws-apprunner-alpha in v2.
fix
Use pip install aws-cdk-aws-apprunner-alpha instead of @aws-cdk/aws-apprunner-alpha.
affects: <2.0.0
breakingConstruct path changed: now under aws_cdk.aws_apprunner_alpha (lowercase, underscore) vs previous aws_cdk.aws_apprunner (no alpha suffix, different casing).
fix
Update imports to from aws_cdk.aws_apprunner_alpha import ...
affects: <2.0.0
gotchaAlpha modules are not subject to semantic versioning and may have breaking changes in minor releases.
fix
Pin exact version in requirements.txt and review changelog before upgrading.
affects: all
gotchaSource.from_asset() expects a dictionary with 'location' and 'source_code_provider' keys; ordering of arguments is strict.
fix
Always pass keyword arguments: source=Source.from_asset({...})
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'aws_cdk.aws_apprunner_alpha'
Package not installed or wrong Python environment.
fix
pip install aws-cdk-aws-apprunner-alpha
jsii.errors.JSIIError: Expected a value of type @aws-cdk/aws-apprunner-alpha.Service but received ...
Mixing constructs from different CDK versions.
fix
Ensure all CDK packages (aws-cdk-lib, aws-cdk-aws-apprunner-alpha) are the same version.
TypeError: __init__() got an unexpected keyword argument 'source'
Using an older version that used 'source_configuration' instead of 'source'.
fix
Upgrade to latest version: pip install --upgrade aws-cdk-aws-apprunner-alpha
Upgrade
Version history
2.260.0a0latest on PyPI · released Jun 16, 2026
Audit
Dependencies
aws-cdk-librequiredRequired peer dependency for CDK constructs.
constructsrequiredRequired peer dependency for construct base classes.
Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
1
Resources
aws-cdk-aws-apprunner-alpha — pip install aws-cdk-aws-apprunner-alpha · libregistry