File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export interface SpyFilter {
5050}
5151
5252const isLambdaFunction = ( node : IConstruct ) : node is lambda . Function =>
53- 'functionName' in node && 'functionArn' in node ;
53+ 'functionName' in node && 'functionArn' in node && 'runtime' in node ;
5454
5555const serverlessSpyIotEndpointCrNamePrefix = 'ServerlessSpyIotEndpoint' ;
5656
@@ -413,6 +413,10 @@ export class ServerlessSpy extends Construct {
413413 ) : { layer : lambda . ILayerVersion ; spyWrapperPath : string } | undefined {
414414 const layerKey = ( r : lambda . Runtime , a : lambda . Architecture ) =>
415415 `${ r . toString ( ) } _${ a . name . toString ( ) } ` ;
416+
417+ console . log ( 'RUNTIME: ' , runtime ) ;
418+ console . log ( 'ARCHITECTURE: ' , architecture ) ;
419+
416420 let layer = this . layerMap [ layerKey ( runtime , architecture ) ] ;
417421 let spyWrapperPath = '/opt/spy-wrapper' ;
418422
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export class LambdaStack extends Stack {
2020 NODE_OPTIONS : '--enable-source-maps' ,
2121 } ,
2222 } ) ;
23+ func . addAlias ( 'live' ) ;
2324
2425 // use uncommon name
2526 const func2 = new NodejsFunction ( this , 'my_lambda-TestName_2' , {
You can’t perform that action at this time.
0 commit comments