File tree Expand file tree Collapse file tree 2 files changed +154
-158
lines changed Expand file tree Collapse file tree 2 files changed +154
-158
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,20 @@ import * as cdk from 'aws-cdk-lib';
44import * as lambda from 'aws-cdk-lib/aws-lambda' ;
55import * as s3_assets from 'aws-cdk-lib/aws-s3-assets' ;
66import * as cr from 'aws-cdk-lib/custom-resources' ;
7+ import { LAMBDA_CREATE_NEW_POLICIES_WITH_ADDTOROLEPOLICY } from 'aws-cdk-lib/cx-api' ;
78
89import { ASSET_FILE , LAYER_SOURCE_DIR } from '../lib' ;
910
1011/**
1112 * Test verifies that node-proxy-agent is invoked successfully inside Lambda runtime.
1213 */
1314
14- const app = new cdk . App ( ) ;
15+ const app = new cdk . App ( {
16+ postCliContext : {
17+ [ LAMBDA_CREATE_NEW_POLICIES_WITH_ADDTOROLEPOLICY ] : false ,
18+ } ,
19+ } ) ;
20+
1521const stack = new cdk . Stack ( app , 'lambda-layer-node-proxy-agent-integ-stack' ) ;
1622const asset = new s3_assets . Asset ( stack , 'node-proxy-asset' , {
1723 path : ASSET_FILE ,
You can’t perform that action at this time.
0 commit comments