aws-cdk.aws-amplify-alpha
The CDK Construct Library for AWS::Amplify
What it is and what it does
This package provides CDK constructs for defining AWS Amplify Console applications as infrastructure code. It lets you programmatically set up Git-connected fullstack serverless apps with support for GitHub, GitLab, and CodeCommit repositories, configure multiple branches with environment variables and performance settings, define custom routing rules and single-page application redirects, map custom domains with auto-subdomain registration, and add basic auth and custom response headers.
The package wraps Amplify Console's Git-based workflow into Python classes that integrate with the AWS CDK ecosystem. It depends on aws-cdk-lib for core CDK functionality, constructs for the component model, jsii for language bindings, and publication for metadata handling. The APIs are explicitly marked experimental and subject to breaking changes between releases, so production use requires acceptance of potential upgrade friction.
Use it for:
- Define a fullstack serverless app with GitHub integration, multiple branches (main/dev/staging), and automatic branch preview deployments
- Set up custom domain routing with auto-generated subdomains for feature branches and pull request previews
- Configure single-page application rewrites and custom HTTP response headers for specific URL patterns in a monorepo
- Protect staging or development branches with basic authentication while keeping production public
- Automate branch creation and deletion for feature branches matching a naming pattern
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Defines AWS Amplify hosting infrastructure as code using CDK constructs, enabling Git-based deployment of fullstack serverless web applications with branches, domains, and custom routing rules.
Yes, if you use AWS CDK and need to manage Amplify hosting infrastructure as code. The low install friction and active maintenance are positive. However, accept that the experimental status means breaking changes may occur on upgrades—pin the version and review release notes before updating. Not suitable if you need API stability guarantees.
Install
aws-cdk-aws-amplify-alpha on PyPI
pip
pip install aws-cdk-aws-amplify-alphauv
uv add aws-cdk-aws-amplify-alphapoetry
poetry add aws-cdk-aws-amplify-alphaInstalling aws-cdk.aws-amplify-alpha
Before you install
Low install friction with 4 runtime dependencies. Package is actively maintained with a release 1 day old. However, marked as experimental and subject to non-backward compatible changes—breaking updates may require source code modifications when upgrading.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install aws-cdk-aws-amplify-alpha
from aws_cdk import aws_amplify_alpha as amplify
from aws_cdk.aws_secretsmanager import SecretValue
amplify_app = amplify.App(self, "MyApp",
source_code_provider=amplify.GitHubSourceCodeProvider(
owner="myorg",
repository="myrepo",
oauth_token=SecretValue.secrets_manager("github-token")
)
)
Requires AWS CDK >= 2.x and Python >= 3.10. Depends on aws-cdk-lib, constructs, jsii, and publication packages.
Verify before relying
- Stability timeline: when experimental APIs are expected to stabilize or whether breaking changes are frequent
- Performance characteristics under typical branch/domain scaling scenarios
- Compatibility with specific AWS Amplify Console features not covered in the excerpt
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — aws-cdk-lib, constructs, jsii, publication |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 197,777/month — #9,748 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk_aws_amplify_alpha-2.265.0a0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
aws-cdk.aws-codestar-alphaProvides AWS CDK constructs for AWS CodeStar…
permissive · top 15,000 on PyPI
aws-cdk.aws-samProvides AWS CDK v1 constructs for defining…
permissive · top 15,000 on PyPI
aws-cdk.aws-codebuildDefines AWS CodeBuild projects and build…
permissive · top 15,000 on PyPI
aws-cdk.aws-imagebuilderProvides AWS CDK L1 constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-apigatewayProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-ecrProvides AWS CDK constructs for defining,…
permissive · top 15,000 on PyPI
aws-cdk.aws-kinesisfirehose-destinations-alphaProvides AWS CDK constructs for configuring…
permissive · top 15,000 on PyPI
aws-solutions-constructs.coreProvides core building blocks and default…
permissive · top 15,000 on PyPI
aws-cdk.aws-elasticloadbalancingProvides AWS CDK constructs for configuring and…
permissive · top 15,000 on PyPI
aws-cdk.aws-eventsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI