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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c273e1684f785560c0af6aff5ed06192c10603ea225cccb33cd5174d58da25c |
|
MD5 | 7f4e07669f1a277ee5db80f517a39a84 |
|
BLAKE2b-256 | f6e966f002006fb751e2bd37ea485874fb6f3907d8268123cb72fdeb030c6f3c |
Close
Hashes for gammarer.aws_daily_cloud_watch_logs_archiver-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f8ce7fa57b08ad4200f6376dcdcd6502ff8ac28338d4ff835dc79804b3560c4 |
|
MD5 | 1d0da836aacb18663b011f219e5d0458 |
|
BLAKE2b-256 | d74a8cb52105d77dca83c4b576502474f56293326699fb56c03af2ccb8ac5601 |