AWS CDK deployed stack that allows you to manipulate and ship AWS CloudWatch logs through tags.
-
Install Node version 20. The use of nvm is recommended. See https://github.com/nvm-sh/nvm
-
Install AWS CDK. See https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-typescript.html
-
Set the AWS_REGION environment variable and credentials in your terminal or alternatively use AWS_PROFILE.
-
Run a diff
pnpm cdk-diff
-
Deploy the stack
pnpm cdk-deploy
| Tag | Description |
|---|---|
| autolog:dest | The destination logs will be written to |
| autolog:disabled | If set to true, AutoLog will skip creating or delete existing logs subscription filter |
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}}/ |