AWS CloudWatch Logs daily archive to s3 bucket
Project description
AWS Daily CloudWatch Logs Archiver
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
Install
TypeScript
npm install @gammarer/aws-daily-cloud-watch-logs-archiver
# or
yarn add @gammarer/aws-daily-cloud-watch-logs-archiver
Python
pip install gammarer.aws-daily-cloud-watch-logs-archiver
C# / .NET
dotnet add package Gammarer.CDK.AWS.DailyCloudWatchLogsArchiver
Java
Add the following to pom.xml:
<dependency>
<groupId>com.gammarer</groupId>
<artifactId>aws-daily-cloud-watch-logs-archiver</artifactId>
</dependency>
Example
npm install @gammarer/aws-daily-cloud-watch-logs-archiver
import { DailyCloudWatchLogsArchiver } from '@gammarer/aws-daily-cloud-watch-logs-archiver';
new DailyCloudWatchLogsArchiver(stack, 'DailyCloudWatchLogsArchiver', {
resource: {
key: 'DailyLogExport',
values: ['Yes'],
},
});
License
This project is licensed under the Apache-2.0 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gammarer.aws-daily-cloud-watch-logs-archiver-2.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a893ebb52dba16c0c2363819b7e24d075c0fd9aba812f7c771eac34f38e32966 |
|
MD5 | 709812dc72b421ddcf4189f07b23e2b4 |
|
BLAKE2b-256 | f6ab3c57cccacd3441c95c022618ab4189ad5b179b04eb555d780f775fd9192c |
Close
Hashes for gammarer.aws_daily_cloud_watch_logs_archiver-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9a1d480c9492d3372b7e592592b6d9ee497026c3a159d18b56b071b4b7af075 |
|
MD5 | 8097e019737d99f644657060eb867551 |
|
BLAKE2b-256 | f3199d660b6dce4fc90de68ef6b7447d0b5ea7a2b3e59352a3b7ddcc9f25ac8e |