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 {
50
50
}
51
51
52
52
const isLambdaFunction = ( node : IConstruct ) : node is lambda . Function =>
53
- 'functionName' in node && 'functionArn' in node ;
53
+ 'functionName' in node && 'functionArn' in node && 'runtime' in node ;
54
54
55
55
const serverlessSpyIotEndpointCrNamePrefix = 'ServerlessSpyIotEndpoint' ;
56
56
@@ -413,6 +413,10 @@ export class ServerlessSpy extends Construct {
413
413
) : { layer : lambda . ILayerVersion ; spyWrapperPath : string } | undefined {
414
414
const layerKey = ( r : lambda . Runtime , a : lambda . Architecture ) =>
415
415
`${ r . toString ( ) } _${ a . name . toString ( ) } ` ;
416
+
417
+ console . log ( 'RUNTIME: ' , runtime ) ;
418
+ console . log ( 'ARCHITECTURE: ' , architecture ) ;
419
+
416
420
let layer = this . layerMap [ layerKey ( runtime , architecture ) ] ;
417
421
let spyWrapperPath = '/opt/spy-wrapper' ;
418
422
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export class LambdaStack extends Stack {
20
20
NODE_OPTIONS : '--enable-source-maps' ,
21
21
} ,
22
22
} ) ;
23
+ func . addAlias ( 'live' ) ;
23
24
24
25
// use uncommon name
25
26
const func2 = new NodejsFunction ( this , 'my_lambda-TestName_2' , {
You can’t perform that action at this time.
0 commit comments