Skip to main content

AWS Daily CloudWatch Logs Archive Stack

GitHub npm (scoped) PyPI Nuget Sonatype Nexus (Releases) GitHub Workflow Status (branch) GitHub release (latest SemVer)

View on Construct Hub

AWS CloudWatch Logs daily(13:00Z) archive to s3 bucket.

Resources

This construct creating resource list.

  • S3 Bucket (log-archive-xxxxxxxx from @gammarer/aws-secure-log-bucket)
  • Lambda function execution role
  • Lambda function
  • Lambda function log group
  • StepFunctions state machine execution role
  • StepFunctions state machine
  • EventBridge Scheduler execution role
  • EventBridge Scheduler

Architecture

architecture

Install

TypeScript

npm install @gammarer/aws-daily-cloud-watch-logs-archive-stack
# or
yarn add @gammarer/aws-daily-cloud-watch-logs-archive-stack

Python

pip install gammarer.aws-daily-cloud-watch-logs-archive-stack

C# / .NET

dotnet add package Gammarer.CDK.AWS.DailyCloudWatchLogsArchiveStack

Java

Add the following to pom.xml:

<dependency>
  <groupId>com.gammarer</groupId>
  <artifactId>aws-daily-cloud-watch-logs-archive-stack</artifactId>
</dependency>

Example

npm install @gammarer/aws-daily-cloud-watch-logs-archive-stack
import { DailyCloudWatchLogsArchiveStack } from '@gammarer/aws-daily-cloud-watch-logs-archive-stack';

new DailyCloudWatchLogsArchiveStack(stack, 'DailyCloudWatchLogsArchiveStack', {
    targetResourceTag: {
      key: 'DailyLogExport',
      values: ['Yes'],
    },
});

Otherwise

If you want to export old log files, please refer to the following repository. The log file will be exported in the same output format.

AWS CloudWatch Logs Exporter

License

This project is licensed under the Apache-2.0 License.

Metadata

Release files for gammarer.aws-daily-cloud-watch-logs-archive-stack 2.6.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gammarer.aws-daily-cloud-watch-logs-archive-stack 2.6.7
File Size Uploaded
gammarer.aws-daily-cloud-watch-logs-archive-stack-2.6.7.tar.gz 60.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gammarer.aws-daily-cloud-watch-logs-archive-stack 2.6.7
File Interpreter ABI Platform
gammarer.aws_daily_cloud_watch_logs_archive_stack-2.6.7-py3-none-any.whl Python 3 none any Details

Total release size: 119.4 kB

Release files / gammarer.aws-daily-cloud-watch-logs-archive-stack-2.6.7.tar.gz

Download URL gammarer.aws-daily-cloud-watch-logs-archive-stack-2.6.7.tar.gz
Size 60.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c8ca9dd943ddcf866cd11f3288f5fcca7b807da63e4e17abf4b42f7398847d8b
BLAKE2b-256 checksum
How to use checksums
0a61d8b7b29fdcbb2a209c635879c6bd5a0117c9026dfa135a61b44eab8a476f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / gammarer.aws_daily_cloud_watch_logs_archive_stack-2.6.7-py3-none-any.whl

Download URL gammarer.aws_daily_cloud_watch_logs_archive_stack-2.6.7-py3-none-any.whl
Size 59.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99b4fa0f355d6e30526227efec5b5ef4e62b80aa4daa0071fb9dd22ab980903b
BLAKE2b-256 checksum
How to use checksums
2eb45c6891e437555f2c045d5b66721c6fa8f9e3eb637220f4120e03b11e74ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

2.6.7 This release

2 release files

2.6.6

2 release files

2.6.5

2 release files

2.6.4

2 release files

2.6.2

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page