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
Architecture
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.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b4fd853afba5108c1d69c130c9035370a0ef7a4c3e479b612a89749f5ed766e |
|
MD5 | 8c51636295b4d773104168123a48fb26 |
|
BLAKE2b-256 | ea0ce5a224e8f86a86a85f970237b25422282e5df53c85c5fe57e4562e22cd1b |
Close
Hashes for gammarer.aws_daily_cloud_watch_logs_archiver-2.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0a2123d8d2928b606f240980983be474ec107a396fae171003cf27cf8f1d75a |
|
MD5 | a62a4901dfe2559a3877aa529741d49e |
|
BLAKE2b-256 | 822bcb3ea8159c4c12c9d19f3bad5c746a1b8ddcc5393b9234b1668a63f27db2 |