aws-cdk.aws-logs
The CDK Construct Library for AWS::Logs
Decision gist · record as of 2026-08-14
No—this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer updated. For new projects, use AWS CDK v2 instead. For existing v1 deployments, plan a migration to v2 to maintain security and feature support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires AWS CDK v1 core library; AWS CDK v1 is end-of-support as of 2023-06-01 and v2 is recommended for new projects.
- Low install friction with a pure-Python wheel.
- However, this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated; users should migrate to AWS CDK v2 instead.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
last release 2023-06-19 (1152 days) · last repo commit 2026-08-14 · 12,868 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 186,512 downloads/mo, #9,982 on PyPI
Alternatives
Verify before relying
pip install aws-cdk.aws-logs
from aws_cdk import aws_logs as logs
from aws_cdk import core
stack = core.Stack()
log_group = logs.LogGroup(stack, "MyLogGroup",
retention=logs.RetentionDays.ONE_WEEK
)- Whether existing v1 projects can safely remain on this package or face security/compatibility risks post-EOL
- Migration path complexity and effort for moving from v1 to v2 constructs
What it is and what it does
This package provides AWS CDK v1 constructs for defining CloudWatch Logs infrastructure in Python. It lets you declare log groups with configurable retention periods, set up log stream subscriptions to Lambda or Kinesis, create metric filters to extract metrics from logs, and manage resource policies for cross-service access. The constructs generate CloudFormation templates that AWS deploys on your behalf.
The library integrates with other AWS CDK modules (IAM, KMS, S3, CloudWatch) to handle encryption, permissions, and monitoring. However, AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer maintained; the AWS team recommends migrating to AWS CDK v2 for new projects and existing deployments.
Use it for
- Define log groups with specific retention policies (e.g., one week) in infrastructure-as-code templates
- Route filtered log events from CloudWatch to Lambda functions or Kinesis streams for downstream processing
- Extract numeric values from JSON-structured logs and emit them as CloudWatch metrics for alarming
- Encrypt log group data with customer-managed KMS keys for compliance requirements
- Manage log retention for log groups auto-created by AWS services like Lambda using LogRetention construct
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No—this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer updated.
For new projects, use AWS CDK v2 instead. For existing v1 deployments, plan a migration to v2 to maintain security and feature support.
Install
aws-cdk-aws-logs on PyPI
Before you install
Low install friction with a pure-Python wheel. However, this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated; users should migrate to AWS CDK v2 instead.
Requires AWS CDK v1 core library; AWS CDK v1 is end-of-support as of 2023-06-01 and v2 is recommended for new projects.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install aws-cdk.aws-logs
from aws_cdk import aws_logs as logs
from aws_cdk import core
stack = core.Stack()
log_group = logs.LogGroup(stack, "MyLogGroup",
retention=logs.RetentionDays.ONE_WEEK
)
Verify before relying
- Whether existing v1 projects can safely remain on this package or face security/compatibility risks post-EOL
- Migration path complexity and effort for moving from v1 to v2 constructs
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release ~=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 10 packagesaws-cdk.aws-cloudwatchaws-cdk.aws-iamaws-cdk.aws-kmsaws-cdk.aws-s3-assetsaws-cdk.coreaws-cdk.cx-apiconstructsjsiipublicationtypeguard |
| Maintenance | Actively maintained 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 186,512 / month, #9,982 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | 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 |
Evidence: aws_cdk.aws_logs-1.204.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “cloudwatch logs cdk constructs”
- aws-cdk.aws-logsProvides AWS CDK constructs for creating and managing CloudWatch Logs…
- aws-cdk.aws-iot-actions-alphaProvides AWS CDK constructs that define actions for AWS IoT Rules,…
- aws-cdk.aws-cloudwatchDefines CloudWatch metrics, alarms, and dashboards as code using AWS…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also aws-cdk.aws-cloudwatch · awslogs · aws-embedded-metrics · cloudwatch · kappa · aws-cdk.aws-kinesisanalytics-flink-alpha · aws-cdk.aws-sns · aws-cdk.aws-iot-actions-alpha · aws-cdk.aws-neptune-alpha · cdk-cloudformation-datadog-monitors-monitor