Tools for creating installer-like Node.js apps for launching infrastructure on AWS with CloudFormation
See app in ./example
directory.
cd ./example
yarn install
./example install
./example uninstall
The following functions create high-level handlers that can be used in apps. E.g. install
/uninstall
command in a CLI application can drive these handlers. Returned handler interfaces are documented below.
params
(Object):
-
stackName
– (boolean)The name of the CloudFormation stack that will be created. This field is required.
-
templatePath
– (string)Absolute path to CloudFormation body template. This field is required.
-
parameterSchema
– (object[])An array of object describing parameters that the handler should pass into the CloudFormation template as Parameters.
Each parameter schema must have the following keys
-
templateName
The name of the parameter as it will appear in the CloudFormation template.
-
argumentName
The name of the parameter as it will be passed into the handler
-
-
logger
– (object)A logger that the handler will use for displaying activity.
The object must support the following subset of the
console
API-
info
-
group
-
groupBy
-
-
stackName
– (boolean)The name of the CloudFormation stack that will be deleted. This field is required.
TODO
TODO