0.1.1 • Published 7 years ago
serverless-resources-ids-file v0.1.1
serverless-resources-ids-file
Output to a (JSON|YML) file the CloudFormation LogicalResourceIds and PhysicalResourceIds of its resources
Installation
Install the package:
npm install serverless-resources-ids-fileAdd it to your plugin list in serverless.yml:
plugins:
- serverless-resources-ids-fileAdd the name of the file (only .json and .yml are accepted) where to save the CloudFormation resources ids.
custom:
output:
file: stack.json
prefix: PREF_The prefix property will add a string as a prefix of every single key.
Example:
custom:
output:
file: stack.jsonOutput in stack.json
{
"ApiGatewayRestApi": "14d7qve030"
}custom:
output:
file: stack.json
prefix: PREF_Output in stack.json
{
"PREF_ApiGatewayRestApi": "14d7qve030"
}Usage
Whenever you call info or deploy with the --verbose option, the stack outputs will be saved:
serverless info --verbose
serverless deploy --verbose