aws-cdk.aws-glue-alpha
The CDK Construct Library for AWS::Glue
What it is and what it does
aws-cdk-aws-glue-alpha is an AWS CDK L2 construct library that wraps AWS Glue job creation with higher-level abstractions. It provides opinionated Python classes (PySparkEtlJob, PySparkStreamingJob, PythonShellJob, FlexJob) that set required parameters to AWS best-practice defaults—such as enabling metrics, Spark UI, and continuous CloudWatch logging—while allowing optional overrides for flexibility. The library enforces parameter combinations via interface contracts rather than runtime validation, discouraging anti-patterns and reducing development time.
The package is part of the AWS CDK project and targets developers building data integration pipelines on AWS. It handles Spark (ETL and Streaming), Python Shell, and Flex job types, with support for features like Secrets Manager integration for JDBC connections, autoscaling, and security configurations. The APIs are experimental and subject to breaking changes; the library does not support deprecated Glue versions or outdated language dependencies, steering users toward current best practices.
Use it for:
- Define Spark ETL jobs in Python or Scala with sensible defaults and optional worker type, Glue version, and timeout overrides.
- Create Spark Streaming jobs for real-time data processing with structured streaming, using the same opinionated construct pattern.
- Build Python Shell jobs for lightweight data transformation tasks without the overhead of full Spark clusters.
- Set up Flex jobs for non-urgent workloads (testing, pre-production) with reduced cost via flexible execution class.
- Integrate Glue jobs into CDK stacks alongside other AWS resources, with automatic IAM role and security configuration management.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides AWS CDK L2 constructs for defining AWS Glue jobs (Spark ETL, Spark Streaming, Python Shell, and Flex) with sensible defaults and opinionated interfaces that enforce best practices.
Yes, with conditions. Install if you are building AWS Glue jobs within an AWS CDK project and want opinionated, best-practice defaults that reduce boilerplate. Be aware that the APIs are experimental (Beta status) and subject to breaking changes; review release notes before upgrading. No known security vulnerabilities as of the latest check. Low install friction and active maintenance make it a reasonable choice for new CDK-based Glue deployments.
Install
aws-cdk-aws-glue-alpha on PyPI
pip
pip install aws-cdk-aws-glue-alphauv
uv add aws-cdk-aws-glue-alphapoetry
poetry add aws-cdk-aws-glue-alphaInstalling aws-cdk.aws-glue-alpha
Before you install
Low install friction with four runtime dependencies. Actively maintained; released 1 day ago with recent commits. Beta stability status means APIs are experimental and subject to non-backward compatible changes in future versions.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install aws-cdk-aws-glue-alpha
import aws_cdk as cdk
from aws_cdk.aws_glue_alpha import PySparkEtlJob
stack = cdk.Stack()
glue_job = PySparkEtlJob(stack, "MyJob",
role=iam_role,
script=glue.Code.from_asset("script.py"),
job_name="MyGlueJob"
)
Requires Python 3.10 or later; aws-cdk-lib and constructs must be installed as runtime dependencies.
Verify before relying
- Whether breaking changes from the prior glue-alpha module require significant code migration for existing users.
- Performance characteristics and scalability limits for large numbers of concurrent Glue jobs defined via this construct.
- Stability timeline: when these experimental APIs are expected to move out of beta.
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 | 1,661,099/month — #3,674 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk_aws_glue_alpha-2.265.0a0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
awsglue-devProvides Python interfaces to AWS Glue's ETL…
unclear · top 5,000 on PyPI
dbt-gluedbt-glue is a dbt adapter that enables running…
permissive · top 15,000 on PyPI
aws-cdk.aws-imagebuilderProvides AWS CDK L1 constructs for defining and…
permissive · top 15,000 on PyPI
pulp-gluepulp-glue is a command-line interface for Pulp…
copyleft · top 15,000 on PyPI
aws-cdk.aws-kinesisanalytics-flink-alphaProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-apprunner-alphaProvides AWS CDK constructs for deploying…
permissive · top 15,000 on PyPI
aws-cdk.aws-neptune-alphaProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-eventsProvides AWS CDK constructs for defining Amazon…
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-batchDefines AWS Batch infrastructure (compute…
permissive · top 15,000 on PyPI