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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b9802bb3ef5c93dc36b53192d2d7ef9202014a24a411f558de9a45879b18717 |
|
MD5 | 9f2121e15164e6df43d3939a11f34c7f |
|
BLAKE2b-256 | c7060cf2eafbe8c05974e6784ea9a7176b3056bdf5ce12f63e1336e774c7a4ca |
Close
Hashes for gammarer.aws_daily_cloud_watch_logs_archiver-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3da5711f74d67ad97d699fb6fe37ce39489e13b45eaa94ed4c23756f7547d03 |
|
MD5 | 494da2d90be641d4a640a00159836770 |
|
BLAKE2b-256 | 382a6126ebf0662c9f35c1535b0a1728bb8d382abf912bab1f935c973402883e |