Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Small serverless plugin providing a way to add tags to CloudWatch resources

Notifications You must be signed in to change notification settings

pretty-fun-therapy/serverless-plugin-tag-cloud-watch-logs

Repository files navigation

serverless-plugin-tag-cloud-watch-logs

Serverless plugin to tag CloudWatchLogs

⚠️ THIS PROJECT IS DEPRECATED

As an alternative with similar features, we suggest using serverless-tag-cloud-watch-logs.

Installation

Install the plugin via NPM

npm install --save-dev @pretty-fun-therapy/serverless-plugin-tag-cloud-watch-logs

Usage

In your serverless template :

custom:
  cloudWatchLogsTags:
    TagName1: TagValue1
    TagName2: TagValue2

plugins:
  - '@pretty-fun-therapy/serverless-plugin-tag-cloud-watch-logs'

Or if you if you already have tags for your stack in another place :

custom:
  cloudWatchLogsTags:${self:provider.<your_tags>}

plugins:
  - @pretty-fun-therapy/serverless-plugin-tag-cloud-watch-logs

This plugin also allow you to add tags retrieved from your lambda resources.
To do so, you just have to add these lines into your serverless template :

custom:
  addLambdaTagsOnLogGroups: true
  customTagsFromLambda:
    - "first_tag"
    - "second_tag"
    ...

About

Small serverless plugin providing a way to add tags to CloudWatch resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published