0.1.1 • Published 6 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-file
Add it to your plugin list in serverless.yml
:
plugins:
- serverless-resources-ids-file
Add 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.json
Output 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