aws-solutions-constructs.core
Core CDK Construct for patterns library
What it is and what it does
aws-solutions-constructs-core is the foundational module of the AWS Solutions Constructs Library, providing core classes and default properties that enforce secure, well-architected patterns across AWS CDK constructs. It sets sensible defaults for AWS resources—such as enabling S3 encryption, versioning, and public access blocking—that can be overridden by user-provided properties. The library emits warnings when defaults are overridden, helping developers maintain awareness of security-relevant changes.
The package is designed for teams building infrastructure-as-code with AWS CDK who want to adopt pre-configured, secure patterns without manually specifying every property. It depends on aws-cdk-lib, constructs, jsii, and related libraries. The project is actively maintained but explicitly not bound by Semantic Versioning, meaning non-backward compatible changes can occur in any release, so upgrades may require code adjustments.
Use it for:
- Building AWS infrastructure patterns with secure defaults (encryption, versioning, access controls) already applied to S3, CloudFront, and other resources.
- Enforcing organizational security policies by centralizing default configurations for CDK constructs across multiple projects.
- Overriding core defaults for specific resources while receiving warnings about deviations from secure baselines.
- Developing reusable CDK construct libraries that inherit well-architected defaults from the core module.
- Reducing boilerplate in infrastructure-as-code by relying on pre-configured, audited resource properties.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides core building blocks and default properties for AWS CDK constructs used across the AWS Solutions Constructs Library, allowing you to define infrastructure patterns with secure defaults.
Yes, if you are using AWS CDK and want to adopt secure, well-architected defaults for your infrastructure patterns. The low install friction and active maintenance make it straightforward to integrate. However, be aware that the package does not follow Semantic Versioning and may introduce breaking changes in any release—plan for potential code updates when upgrading. If your project requires strict API stability, evaluate the risk of non-backward compatible changes before committing to this library.
Install
aws-solutions-constructs-core on PyPI
pip
pip install aws-solutions-constructs-coreuv
uv add aws-solutions-constructs-corepoetry
poetry add aws-solutions-constructs-coreInstalling aws-solutions-constructs.core
Before you install
Low install friction with a pure Python wheel. Actively maintained with recent releases; however, the package explicitly warns that classes are under active development and subject to non-backward compatible changes outside of Semantic Versioning, so upgrades may require source code updates.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install aws-solutions-constructs-core
from aws_solutions_constructs import core
from aws_cdk import Stack
# Use core to access default properties and building blocks
stack = Stack()
# Constructs will apply core's secure defaults automatically
Requires Python 3.9 or later and aws-cdk-lib to be installed; intended for use within AWS CDK projects.
Verify before relying
- Whether the core library's default properties (e.g., S3 encryption, versioning, block public access) are appropriate for your specific security and compliance requirements.
- The current state and timeline of the aws-constructs-factories effort mentioned in the description, which may affect future API stability.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (~=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — aws-cdk-lib, aws-cdk.cloud-assembly-schema, constructs, jsii, publication, typeguard |
| Maintenance | actively maintained — 44 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 128,404/month — #11,710 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_solutions_constructs_core-2.103.0-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
aws-cdk.coreProvides the core construct classes and stack…
permissive · top 15,000 on PyPI
constructsConstructs is a programming model for defining…
permissive · top 5,000 on PyPI
aws-cdk.aws-imagebuilderProvides AWS CDK L1 constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-codebuildDefines AWS CodeBuild projects and build…
permissive · top 15,000 on PyPI
aws-cdk.aws-s3Defines AWS S3 buckets and related resources as…
permissive · top 15,000 on PyPI
aws-cdk.aws-codestar-alphaProvides AWS CDK constructs for AWS CodeStar…
permissive · top 15,000 on PyPI
aws-cdk.aws-iot-alphaProvides AWS CDK constructs for defining AWS…
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-ecrProvides AWS CDK constructs for defining,…
permissive · top 15,000 on PyPI
aws-cdk.aws-cloudfrontDefines AWS CloudFront distributions and…
permissive · top 15,000 on PyPI