{"id":19657898,"url":"https://github.com/gammarers/aws-daily-cloud-watch-logs-archive-stack","last_synced_at":"2025-12-24T21:36:36.156Z","repository":{"id":100812926,"uuid":"608921189","full_name":"gammarers/aws-daily-cloud-watch-logs-archive-stack","owner":"gammarers","description":"AWS CloudWatch Logs daily archive to s3 bucket","archived":false,"fork":false,"pushed_at":"2025-04-23T19:17:22.000Z","size":3026,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-26T12:06:17.556Z","etag":null,"topics":["aws","cdk","cdk-construct-library","scheduler"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gammarers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-03T01:59:53.000Z","updated_at":"2025-04-23T19:13:26.000Z","dependencies_parsed_at":"2023-10-05T02:12:38.206Z","dependency_job_id":"2abe9160-3996-41f9-8d75-4bcd95ccdf22","html_url":"https://github.com/gammarers/aws-daily-cloud-watch-logs-archive-stack","commit_stats":null,"previous_names":["yicr/daily-cloud-watch-log-archiver","yicr/aws-daily-cloud-watch-logs-archiver","yicr/aws-daily-cloud-watch-log-archiver","gammarer/aws-daily-cloud-watch-logs-archiver","gammarer/aws-daily-cloud-watch-logs-archive-stack","gammarers/aws-daily-cloud-watch-logs-archive-stack"],"tags_count":228,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-daily-cloud-watch-logs-archive-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-daily-cloud-watch-logs-archive-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-daily-cloud-watch-logs-archive-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-daily-cloud-watch-logs-archive-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gammarers","download_url":"https://codeload.github.com/gammarers/aws-daily-cloud-watch-logs-archive-stack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250983868,"owners_count":21518024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cdk","cdk-construct-library","scheduler"],"created_at":"2024-11-11T15:34:51.520Z","updated_at":"2025-12-14T14:38:16.075Z","avatar_url":"https://github.com/gammarers.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Daily CloudWatch Logs Archive Stack\n\n[![GitHub](https://img.shields.io/github/license/gammarers/aws-daily-cloud-watch-logs-archive-stack?style=flat-square)](https://github.com/gammarers/aws-daily-cloud-watch-logs-archive-stack/blob/main/LICENSE)\n[![npm (scoped)](https://img.shields.io/npm/v/@gammarers/aws-daily-cloud-watch-logs-archive-stack?style=flat-square)](https://www.npmjs.com/package/@gammarers/aws-daily-cloud-watch-logs-archive-stack)\n[![PyPI](https://img.shields.io/pypi/v/gammarers.aws-daily-cloud-watch-logs-archive-stack?style=flat-square)](https://pypi.org/project/gammarers.aws-daily-cloud-watch-logs-archive-stack/)\n[![Nuget](https://img.shields.io/nuget/v/gammarers.CDK.AWS.DailyCloudWatchLogsArchiveStack?style=flat-square)](https://www.nuget.org/packages/gammarers.CDK.AWS.DailyCloudWatchLogsArchiveStack/)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers/aws-daily-cloud-watch-logs-archive-stack/release.yml?branch=main\u0026label=release\u0026style=flat-square)](https://github.com/gammarers/aws-daily-cloud-watch-logs-archive-stack/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers/aws-daily-cloud-watch-logs-archive-stack?sort=semver\u0026style=flat-square)](https://github.com/gammarers/aws-daily-cloud-watch-logs-archive-stack/releases)\n\n[![View on Construct Hub](https://constructs.dev/badge?package=@gammarers/aws-daily-cloud-watch-logs-archive-stack)](https://constructs.dev/packages/@gammarers/aws-daily-cloud-watch-logs-archive-stack)\n\nAWS CloudWatch Logs daily(13:00Z) archive to s3 bucket.\n\n## Resources\n\nThis construct creating resource list.\n\n- S3 Bucket (log-archive-xxxxxxxx from @gammarers/aws-secure-log-bucket)\n- Lambda function execution role\n- Lambda function\n- Lambda function log group\n- StepFunctions state machine execution role\n- StepFunctions state machine\n- EventBridge Scheduler execution role\n- EventBridge Scheduler\n\n## Architecture\n\n![architecture](/architecture.drawio.svg)\n\n## Install\n\n### TypeScript\n\n#### install by npm\n\n```shell\nnpm install @gammarers/aws-daily-cloud-watch-logs-archive-stack\n```\n\n#### install by yarn\n\n```shell\nyarn add @gammarers/aws-daily-cloud-watch-logs-archive-stack\n```\n\n#### install by pnpm\n\n```shell\npnpm add @gammarers/aws-daily-cloud-watch-logs-archive-stack\n```\n\n#### install by bun\n\n```shell\nbun add @gammarers/aws-daily-cloud-watch-logs-archive-stack\n```\n\n### Python\n\n```shell\npip install gammarers.aws-daily-cloud-watch-logs-archive-stack\n```\n\n### C# / .NET\n\n```shell\ndotnet add package Gammarers.CDK.AWS.DailyCloudWatchLogsArchiveStack\n```\n\n## Example\n\n```shell\nnpm install @gammarers/aws-daily-cloud-watch-logs-archive-stack\n```\n\n```typescript\nimport { DailyCloudWatchLogsArchiveStack } from '@gammarers/aws-daily-cloud-watch-logs-archive-stack';\n\nnew DailyCloudWatchLogsArchiveStack(stack, 'DailyCloudWatchLogsArchiveStack', {\n    targetResourceTag: {\n      key: 'DailyLogExport',\n      values: ['Yes'],\n    },\n});\n\n```\n\n## Otherwise\n\nIf you want to export old log files, please refer to the following repository. The log file will be exported in the same output format.\n\n[AWS CloudWatch Logs Exporter](https://github.com/gammarers/aws-cloud-watch-logs-exporter)\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammarers%2Faws-daily-cloud-watch-logs-archive-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgammarers%2Faws-daily-cloud-watch-logs-archive-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammarers%2Faws-daily-cloud-watch-logs-archive-stack/lists"}