Skip to content

Commit

Permalink
feat(lambda-nodejs): add verbose and debug log level to esbuild bundl…
Browse files Browse the repository at this point in the history
…ing (#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*
  • Loading branch information
msambol authored Nov 27, 2023
1 parent 16630a7 commit d5ef107
Show file tree
Hide file tree
Showing 8 changed files with 397 additions and 162 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,64 @@
"tshandlerServiceRole8876B8E7"
]
},
"tshandlerloglevelServiceRole8512BC45": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
}
}
],
"Version": "2012-10-17"
},
"ManagedPolicyArns": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
]
]
}
]
}
},
"tshandlerloglevel0D4E12A5": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "5017e4b2e278e32bc634202d075b7ed8961b0d784f75450f7918a6a4f6f7df4a.zip"
},
"Environment": {
"Variables": {
"AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
}
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"tshandlerloglevelServiceRole8512BC45",
"Arn"
]
},
"Runtime": "nodejs18.x"
},
"DependsOn": [
"tshandlerloglevelServiceRole8512BC45"
]
},
"jshandlerServiceRole781AF366": {
"Type": "AWS::IAM::Role",
"Properties": {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d5ef107

Please sign in to comment.