mssnews-serverless-param-store-usage-tagger
v1.0.4
Published
Serverless module that listens for AWS SSM getParameter calls and will in turn set specific usage tags on the parameter
Downloads
20
Readme
Overview
Serverless plugin listens for AWS SSM getParameter
calls and will in turn add the following tags to those parameters:
last-accessed-date
: [timestamp in UTC]last-accessed-by
: [value ofAPP_NAME
environment variable (defaults ton/a
)]environment
: [stage
argument from serverless cli command (defaults ton/a
)]
Usage
The plugin will run on any sls commands that access parameter store, like deploy
, but info
is a lightweight and easy way to trigger.
sls plugin install --name mssnews-serverless-param-store-usage-tagger --stage dev
sls info --stage dev
Console Logging
If needed, the plugin looks for the SLS_DEBUG
environment variable to write out extra logs to console.
SLS_DEBUG=1 sls info --stage dev