File tree Expand file tree Collapse file tree 5 files changed +31
-0
lines changed
Expand file tree Collapse file tree 5 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,11 @@ export class CdkFramework implements IFramework {
156156 define : lambdaInCdk . bundling ?. define ,
157157 external : external . length > 0 ? external : undefined ,
158158 } ,
159+ metadata : {
160+ framework : 'cdk' ,
161+ stackName : lambdaInCdk . stackName ,
162+ cdkPath : lambdaInCdk . cdkPath ,
163+ } ,
159164 } ) ;
160165 }
161166 }
Original file line number Diff line number Diff line change @@ -198,6 +198,10 @@ export class SamFramework implements IFramework {
198198 handler,
199199 packageJsonPath,
200200 esBuildOptions,
201+ metadata : {
202+ framework : 'sam' ,
203+ stackName,
204+ } ,
201205 } ;
202206
203207 lambdasDiscovered . push ( lambdaResource ) ;
Original file line number Diff line number Diff line change @@ -203,6 +203,9 @@ export class SlsFramework implements IFramework {
203203 handler,
204204 packageJsonPath,
205205 esBuildOptions,
206+ metadata : {
207+ framework : 'sls' ,
208+ } ,
206209 } ;
207210
208211 lambdasDiscovered . push ( lambdaResource ) ;
Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ export class TerraformFramework implements IFramework {
140140 handler,
141141 packageJsonPath,
142142 esBuildOptions : undefined ,
143+ metadata : {
144+ framework : 'terraform' ,
145+ } ,
143146 } ;
144147
145148 lambdasDiscovered . push ( lambdaResource ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,22 @@ export type LambdaResource = {
1212 forceBundle ?: boolean ;
1313 bundlingType ?: BundlingType ;
1414 esBuildOptions ?: EsBuildOptions ;
15+ metadata : {
16+ /**
17+ * Framework name
18+ */
19+ framework : string ;
20+
21+ /**
22+ * If framework is CDK or SAM, this is the stack name
23+ */
24+ stackName ?: string ;
25+
26+ /**
27+ * If framework is CDK, this is the construct path
28+ */
29+ cdkPath ?: string ;
30+ } ;
1531} ;
1632
1733export enum BundlingType {
You can’t perform that action at this time.
0 commit comments