skillfed

aws-cdk.aws-s3

The CDK Construct Library for AWS::S3

aws-cdk-aws-s3 v1.204.0 186.5K downloads/30d#9,986 on PyPI12,868
Permissive license Apache-2.0 Active released

What it is and what it does

aws-cdk.aws-s3 is the AWS CDK v1 construct library for defining Amazon S3 buckets and related infrastructure as Python code. It provides a high-level abstraction over CloudFormation S3 resources, letting you create, configure, and manage buckets programmatically within a CDK stack. The library supports encryption (KMS and managed), bucket policies, permissions grants, event notifications, and importing existing buckets.

However, this package is no longer maintained. AWS CDK v1 reached end-of-support on 2023-06-01, and AWS recommends migrating to AWS CDK v2. While the package remains installable and functional, it will not receive security updates, bug fixes, or new features. Existing projects using it should plan a migration path to v2.

Use it for:

  • Define S3 buckets with encryption and access policies as part of a CDK infrastructure stack.
  • Set up bucket notifications to trigger Lambda functions or SNS topics on object creation or deletion events.
  • Grant read/write permissions to other AWS resources (Lambda, EC2 roles, IAM users) via bucket grant methods.
  • Import and reference existing S3 buckets into a CDK application for cross-stack resource sharing.
  • Configure bucket-level security settings such as SSL enforcement and KMS encryption in code.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Defines AWS S3 buckets and related resources as code using the AWS CDK v1 construct library, allowing programmatic creation and configuration of S3 storage infrastructure.

No, unless you are maintaining an existing AWS CDK v1 project. The package is end-of-support as of 2023-06-01 and will not receive updates. New projects should use AWS CDK v2 instead. If you are already on v1, plan a migration to v2 to ensure ongoing security and feature support.

Install

aws-cdk-aws-s3 on PyPI

pip

pip install aws-cdk-aws-s3

uv

uv add aws-cdk-aws-s3

poetry

poetry add aws-cdk-aws-s3

Installing aws-cdk.aws-s3

Before you install

Low install friction with 9 runtime dependencies, all from the AWS CDK ecosystem. However, the package is no longer maintained—AWS CDK v1 reached end-of-support on 2023-06-01 and users are directed to migrate to AWS CDK v2.

License in practice

Licensed under Apache-2.0 (permissive), which allows commercial use, modification, and distribution with minimal restrictions, provided the license and copyright notice are retained.

Quickstart

pip install aws-cdk.aws-s3

from aws_cdk import aws_s3 as s3
from aws_cdk import core as cdk

class MyStack(cdk.Stack):
    def __init__(self, scope: cdk.Construct, id: str, **kwargs):
        super().__init__(scope, id, **kwargs)
        bucket = s3.Bucket(self, "MyBucket")

Requires AWS CDK v1 core library and Python 3.7 or later; AWS CDK v1 is end-of-support as of 2023-06-01.

Verify before relying

  • Whether existing CDK v1 projects can safely remain on this package long-term or if security/compatibility issues will emerge post-support.
  • Migration effort and breaking changes when upgrading to AWS CDK v2 for projects currently using this package.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (~=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 9 — aws-cdk.aws-events, aws-cdk.aws-iam, aws-cdk.aws-kms, aws-cdk.core, aws-cdk.cx-api, constructs, jsii, publication, typeguard
Maintenance actively maintained — 1,152 days since the last release
Last repo commit
First released
Downloads 186,475/month — #9,986 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: aws_cdk.aws_s3-1.204.0-py3-none-any.whl

Development Status :: 7 - InactiveFramework :: AWS CDKFramework :: AWS CDK :: 1Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Tags

AWS S3 bucket infrastructure as codeCDK S3 construct librarydefine S3 buckets programmaticallyAWS CDK storage constructsS3 encryption and permissionsbucket notifications and eventsS3 resource management CDK
infrastructure-as-codeaws-cdkend-of-life

More Build Tools packages