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.