mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
25 lines
522 B
JavaScript
25 lines
522 B
JavaScript
'use strict';
|
|
|
|
const BbPromise = require('bluebird');
|
|
const deployCore = require('./lib/deployCore');
|
|
const AWS = require('aws-sdk');
|
|
|
|
class awsDeploy {
|
|
constructor(serverless, options) {
|
|
this.serverless = serverless;
|
|
this.options = options;
|
|
|
|
const config = {
|
|
region: this.options.region,
|
|
};
|
|
this.CloudFormation = new AWS.CloudFormation(config);
|
|
BbPromise.promisifyAll(this.CloudFormation, { suffix: 'Promised' });
|
|
|
|
Object.assign(this, deployCore);
|
|
}
|
|
|
|
|
|
}
|
|
|
|
module.exports = awsDeploy;
|