Skip to content

Commit d5ef107

Browse files
authored
feat(lambda-nodejs): add verbose and debug log level to esbuild bundling (#27658)
Official log levels are [here](https://esbuild.github.io/api/#log-level). Closes #27634. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 16630a7 commit d5ef107

File tree

8 files changed

+397
-162
lines changed

8 files changed

+397
-162
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.js.snapshot/cdk-integ-lambda-nodejs.assets.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.js.snapshot/cdk-integ-lambda-nodejs.template.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,64 @@
5858
"tshandlerServiceRole8876B8E7"
5959
]
6060
},
61+
"tshandlerloglevelServiceRole8512BC45": {
62+
"Type": "AWS::IAM::Role",
63+
"Properties": {
64+
"AssumeRolePolicyDocument": {
65+
"Statement": [
66+
{
67+
"Action": "sts:AssumeRole",
68+
"Effect": "Allow",
69+
"Principal": {
70+
"Service": "lambda.amazonaws.com"
71+
}
72+
}
73+
],
74+
"Version": "2012-10-17"
75+
},
76+
"ManagedPolicyArns": [
77+
{
78+
"Fn::Join": [
79+
"",
80+
[
81+
"arn:",
82+
{
83+
"Ref": "AWS::Partition"
84+
},
85+
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
86+
]
87+
]
88+
}
89+
]
90+
}
91+
},
92+
"tshandlerloglevel0D4E12A5": {
93+
"Type": "AWS::Lambda::Function",
94+
"Properties": {
95+
"Code": {
96+
"S3Bucket": {
97+
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
98+
},
99+
"S3Key": "5017e4b2e278e32bc634202d075b7ed8961b0d784f75450f7918a6a4f6f7df4a.zip"
100+
},
101+
"Environment": {
102+
"Variables": {
103+
"AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
104+
}
105+
},
106+
"Handler": "index.handler",
107+
"Role": {
108+
"Fn::GetAtt": [
109+
"tshandlerloglevelServiceRole8512BC45",
110+
"Arn"
111+
]
112+
},
113+
"Runtime": "nodejs18.x"
114+
},
115+
"DependsOn": [
116+
"tshandlerloglevelServiceRole8512BC45"
117+
]
118+
},
61119
"jshandlerServiceRole781AF366": {
62120
"Type": "AWS::IAM::Role",
63121
"Properties": {

packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.js.snapshot/manifest.json

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)