@@ -12,6 +12,8 @@ const compileDeployment = require('serverless/lib/plugins/aws/package/compile/ev
1212const getStackInfo = require ( 'serverless/lib/plugins/aws/info/getStackInfo' )
1313const compileMethodsToKinesis = require ( './package/kinesis/compileMethodsToKinesis' )
1414const compileIamRoleToKinesis = require ( './package/kinesis/compileIamRoleToKinesis' )
15+ const validateKinesisServiceProxy = require ( './package/kinesis/validateKinesisServiceProxy' )
16+ const compileKinesisServiceProxy = require ( './package/kinesis/compileKinesisServiceProxy' )
1517
1618class ServerlessApigatewayServiceProxy {
1719 constructor ( serverless , options ) {
@@ -28,6 +30,8 @@ class ServerlessApigatewayServiceProxy {
2830 compileMethodsToKinesis ,
2931 compileIamRoleToKinesis ,
3032 compileDeployment ,
33+ validateKinesisServiceProxy ,
34+ compileKinesisServiceProxy ,
3135 getStackInfo ,
3236 validate ,
3337 methods ,
@@ -37,14 +41,15 @@ class ServerlessApigatewayServiceProxy {
3741 this . hooks = {
3842 'package:compileEvents' : async ( ) => {
3943 if ( this . getAllServiceProxies ( ) . length > 0 ) {
40- this . validated = await this . serviceProxyValidate ( )
44+ this . validated = await this . validateServiceProxies ( )
4145 await this . compileRestApi ( )
4246 await this . compileResources ( )
4347 if ( await this . existsDeployment ( ) ) {
4448 await this . compileDeployment ( )
4549 }
46- await this . compileIamRoleToKinesis ( )
47- await this . compileMethodsToKinesis ( )
50+
51+ //Kinesis proxy
52+ await this . compileKinesisServiceProxy ( )
4853 }
4954 } ,
5055 'after:deploy:deploy' : async ( ) => {
0 commit comments