1 | var deployer = require('../').configure({
|
2 | sdk: {
|
3 | url: 'http://my-api.com',
|
4 | name: 'MySampleAPI',
|
5 | path: './sdk.js'
|
6 | },
|
7 | swagger: {
|
8 | path: './swagger.json'
|
9 | },
|
10 | routes: require('./routes.json')
|
11 | });
|
12 |
|
13 | var awsDefaults = {
|
14 | lambda: {
|
15 | role: 'arn:aws:iam::xxxxxxxxxxxx:role/Lambda'
|
16 | },
|
17 | aws: {
|
18 | region: 'us-east-1',
|
19 | profile: 'default'
|
20 | }
|
21 | };
|
22 |
|
23 | deployer.plugins.lambda.configure(awsDefaults);
|
24 | deployer.plugins.local.configure(awsDefaults);
|
25 | deployer.plugins.apigateway.configure(awsDefaults);
|