serverless-print-resolved-plugin

0.0.8 • Public • Published

CircleCI npm version

serverless-print-resolved-plugin

This plugin generates a copy of serverless.yml with all Serverless variables resolved to actual values. It can also write additional metadata that is available.

Usage

Install the plugin:

npm install -D serverless-print-resolved-plugin

Register the plugin in serverless.yml:

plugins:
  - serverless-print-resolved-plugin

After package / deploy, .serverless/serverless-resolved.yml will contain a copy of serverless.yml but with all variables resolved.

To include more metadata from the serverless object, add the following to serverless.yml:

custom:
  print-resolved:
    # Paths are followed using `lodash.get()`
    paths:
      - serverless.pluginManager.hooks
      - serverless.variables.option

Note: objects / properties considered invalid by js-yaml are skipped.

Readme

Keywords

Package Sidebar

Install

npm i serverless-print-resolved-plugin

Weekly Downloads

6

Version

0.0.8

License

Apache-2.0

Unpacked Size

16.4 kB

Total Files

6

Last publish

Collaborators

  • neverendingqs