File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/testing/src/resources Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { randomUUID } from 'node:crypto';
2
2
import { CfnOutput , Duration } from 'aws-cdk-lib' ;
3
3
import { Tracing } from 'aws-cdk-lib/aws-lambda' ;
4
4
import { NodejsFunction , OutputFormat } from 'aws-cdk-lib/aws-lambda-nodejs' ;
5
- import { RetentionDays , LogGroup } from 'aws-cdk-lib/aws-logs' ;
5
+ import { LogGroup , RetentionDays } from 'aws-cdk-lib/aws-logs' ;
6
6
import type { TestStack } from '../TestStack.js' ;
7
7
import { TEST_ARCHITECTURES , TEST_RUNTIMES } from '../constants.js' ;
8
8
import {
@@ -31,7 +31,7 @@ class TestNodejsFunction extends NodejsFunction {
31
31
} ) ;
32
32
const resourceId = randomUUID ( ) . substring ( 0 , 5 ) ;
33
33
34
- const logGroup = new LogGroup ( this , `log-${ resourceId } ` , {
34
+ const logGroup = new LogGroup ( stack . stack , `log-${ resourceId } ` , {
35
35
logGroupName : `/aws/lambda/${ functionName } ` ,
36
36
retention : RetentionDays . ONE_DAY ,
37
37
} ) ;
You can’t perform that action at this time.
0 commit comments