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
State Machine Graph
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f960bce0f569df4531ccc00d546cf6137ef852c5f6fcd436977c44e2f55f795 |
|
MD5 | b18455e0da5dfc3d5b90d50d97d5dc64 |
|
BLAKE2b-256 | 0aa5282abd3b2637a00a0dc2df126f0381f28a593fcc65048ec80b73b27c6c9a |
Close
Hashes for gammarer.aws_daily_cloud_watch_logs_archiver-2.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a976cdc70b808d0a0119f9fb66f1c1372e1192b364531b53338769ce55a29b51 |
|
MD5 | d073e436e20778f9e59ca90f80d0292a |
|
BLAKE2b-256 | 71aeacd8d9f9ec27dca5919f594a8c218dffee6019c8ed9e71e8d5ac9870f8f7 |