Generate a copy of serverless.yml with all variables resolved.
This plugin generates a copy of
serverless.yml with all Serverless variables
resolved to actual values. It can also write additional metadata that is
Install the plugin:
npm install -D serverless-print-resolved-plugin
Register the plugin in
plugins: - serverless-print-resolved-plugin
.serverless/serverless-resolved.yml will contain a
serverless.yml but with all variables resolved.
To include more metadata from the
serverless object, add the following to
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.