Module: lib/deploy

lesslms-cli tool for serverless application deployment in AWS.
Author:
License:
  • MIT
Source:

Members

(inner) _config

Variable to store AWS config.
Source:

(inner) _gen

Variable to store generator instances.
Source:

(inner) _gend

Variable to store generator instances.
Source:

(inner) s3

Variable to store s3 instance.
Source:

Methods

(inner) _configGet(parameter)

Helper function to retrieve parameters from 'serverless.json' config file.
Parameters:
Name Type Description
parameter string Parameter name to retrieve.
Source:

(inner) _configSet(parameter, value)

Helper function to store parameters to 'serverless.json' config file.
Parameters:
Name Type Description
parameter string Parameter name to update.
value string Parameter value to update.
Source:

(generator, inner) _createBucket(callback)

Called on completion.
Parameters:
Name Type Description
callback cbk Error first callback, returns also with the new bucket name.
Source:

(generator, inner) _deploy(callback)

Called on completion.
Parameters:
Name Type Description
callback cbk Error first callback.
Source:

(inner) _getCredentials(callback)

Called on completion.
Parameters:
Name Type Description
callback cbk Error first callback, returns also with credentials object.
Source:

(generator, inner) _getSources(callback)

Called on completion.
Parameters:
Name Type Description
callback cbk Error first callback.
Source:

(generator, inner) _launchFormation(callback)

Called on completion.
Parameters:
Name Type Description
callback cbk Error first callback.
Source:

(inner) _main()

Entry point for lib/deploy module.
Source:

(generator, inner) _populateBucket(callback)

Called on completion.
Parameters:
Name Type Description
callback cbk Error first callback.
Source:

Type Definitions

(generator) cbk(credentials)

Runs the deployment sequence.
Parameters:
Name Type Description
credentials stobject AWS credentials object.
Source:

(generator) cbk(bucket)

Uploads the lesslms sources to the s3 bucket.
Parameters:
Name Type Description
bucket object s3 bucket data where perform the uploads.
Source:

(generator) cbk(uri)

Fetches the zipped sources functions from releases repository.
Parameters:
Name Type Description
uri string Github API uri reference to get last release information.
Source:

(generator) cbk(region)

Launches the CloudFormation script.
Parameters:
Name Type Description
region string AWS region where create the new bucket.
Source:

(generator) cbk(region)

Creates a s3 bucket in AWS and uploads the Lambda source code.
Parameters:
Name Type Description
region string AWS region where create the new bucket.
Source:

(generator) cbk()

Proceses AWS "credentials.csv" file.
Source: