skillfed

aws-cdk.aws-glue-alpha

The CDK Construct Library for AWS::Glue

aws-cdk-aws-glue-alpha v2.265.0a0 1.7M downloads/30d#3,674 on PyPI12,868
Permissive license Apache-2.0 Active released

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-alpha

uv

uv add aws-cdk-aws-glue-alpha

poetry

poetry add aws-cdk-aws-glue-alpha

Installing 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

Development Status :: 4 - BetaFramework :: AWS CDKFramework :: AWS CDK :: 2Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed

Tags

aws glue job cdk constructspark etl infrastructure as codeserverless data integration awsglue streaming job definitionaws cdk glue automation
aws-cdkdata-integrationinfrastructure-as-code

More Application Frameworks packages

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

awsglue-dev

Provides Python interfaces to AWS Glue's ETL…

unclear · top 5,000 on PyPI

dbt-glue

dbt-glue is a dbt adapter that enables running…

permissive · top 15,000 on PyPI

aws-cdk.aws-imagebuilder

Provides AWS CDK L1 constructs for defining and…

permissive · top 15,000 on PyPI

pulp-glue

pulp-glue is a command-line interface for Pulp…

copyleft · top 15,000 on PyPI

aws-cdk.aws-kinesisanalytics-flink-alpha

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-apprunner-alpha

Provides AWS CDK constructs for deploying…

permissive · top 15,000 on PyPI

aws-cdk.aws-neptune-alpha

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-events

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI

aws-cdk.aws-sam

Provides AWS CDK v1 constructs for defining…

permissive · top 15,000 on PyPI

aws-cdk.aws-batch

Defines AWS Batch infrastructure (compute…

permissive · top 15,000 on PyPI