Skip to content

Commit d787764

Browse files
committed
fix feature flag
1 parent 93a22cc commit d787764

File tree

2 files changed

+154
-158
lines changed

2 files changed

+154
-158
lines changed

test/integ.node-proxy-agent.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@ import * as cdk from 'aws-cdk-lib';
44
import * as lambda from 'aws-cdk-lib/aws-lambda';
55
import * as s3_assets from 'aws-cdk-lib/aws-s3-assets';
66
import * as cr from 'aws-cdk-lib/custom-resources';
7+
import { LAMBDA_CREATE_NEW_POLICIES_WITH_ADDTOROLEPOLICY } from 'aws-cdk-lib/cx-api';
78

89
import { 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+
1521
const stack = new cdk.Stack(app, 'lambda-layer-node-proxy-agent-integ-stack');
1622
const asset = new s3_assets.Asset(stack, 'node-proxy-asset', {
1723
path: ASSET_FILE,

0 commit comments

Comments
 (0)