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 @yicr/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
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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8243c4750996c922327d5585afdfb21a551fc41f424b42beeb7704cffa0bc08d |
|
MD5 | 2689630c1d563fe466588a62ad0a96e8 |
|
BLAKE2b-256 | ca621bf002baffa7ccf99ba6af9fc19770b7cf0991c9fb192ab2fdc25fd7499c |
Close
Hashes for gammarer.aws_daily_cloud_watch_logs_archiver-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af29b050db924bde1b7ad67b042905ad86a0ff5336c83ab6683a209eaa1d6ed8 |
|
MD5 | af02cd5181902fe4b3923f177366a65a |
|
BLAKE2b-256 | e62b338636839f93906ad51785c8ca280b8a443940968b741a03dfe988101dbb |