UNPKG

594 BJavaScriptView Raw
1var 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
13var 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
23deployer.plugins.lambda.configure(awsDefaults);
24deployer.plugins.local.configure(awsDefaults);
25deployer.plugins.apigateway.configure(awsDefaults);