Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.39 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.39 KB

AutoLog

AWS CDK deployed stack that allows you to manipulate and ship AWS CloudWatch logs through tags.

Installation

  1. Install Node version 20. The use of nvm is recommended. See https://github.com/nvm-sh/nvm

  2. Install AWS CDK. See https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-typescript.html

  3. Set the AWS_REGION environment variable and credentials in your terminal or alternatively use AWS_PROFILE.

  4. Run a diff

    pnpm cdk-diff
  5. Deploy the stack

    pnpm cdk-deploy

Supported Tags

CloudWatch LogGroup Tags

Tag Description
autolog:dest The destination logs will be written to

The following destination patterns are supported

Destination Description
{{bucketName}}/{{indexName}} Logs will be written to an s3 bucket managed by overwatch using the path /autolog/{{indexName}}/{{account}}/{{region}}/