1.0.4 • Published 3 years ago
mssnews-serverless-param-store-usage-tagger v1.0.4
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 UTClast-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