Skip to content

Commit

Permalink
feat(lambda): node20 runtime (#27897)
Browse files Browse the repository at this point in the history
Preparing for node20 launch

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
kaizencc committed Nov 13, 2023
1 parent a2e5f65 commit a5acd0f
Show file tree
Hide file tree
Showing 8 changed files with 207 additions and 22 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 @@ -37,13 +37,13 @@
"Code": {
"ZipFile": "def handler(event, context):\n return \"success\""
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"PYTHON37ServiceRoleDE7E561E",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "python3.7"
},
"DependsOn": [
Expand Down Expand Up @@ -87,13 +87,13 @@
"Code": {
"ZipFile": "def handler(event, context):\n return \"success\""
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"PYTHON38ServiceRole3EA86BBE",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "python3.8"
},
"DependsOn": [
Expand Down Expand Up @@ -137,13 +137,13 @@
"Code": {
"ZipFile": "def handler(event, context):\n return \"success\""
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"PYTHON39ServiceRole53E964DF",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "python3.9"
},
"DependsOn": [
Expand Down Expand Up @@ -187,13 +187,13 @@
"Code": {
"ZipFile": "def handler(event, context):\n return \"success\""
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"PYTHON310ServiceRole65985CC8",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "python3.10"
},
"DependsOn": [
Expand Down Expand Up @@ -237,13 +237,13 @@
"Code": {
"ZipFile": "exports.handler = async function(event) { return \"success\" }"
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"NODEJS14XServiceRole4523ECDB",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "nodejs14.x"
},
"DependsOn": [
Expand Down Expand Up @@ -287,13 +287,13 @@
"Code": {
"ZipFile": "exports.handler = async function(event) { return \"success\" }"
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"NODEJS16XServiceRoleB9DAFDFD",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "nodejs16.x"
},
"DependsOn": [
Expand Down Expand Up @@ -337,18 +337,68 @@
"Code": {
"ZipFile": "exports.handler = async function(event) { return \"success\" }"
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"NODEJS18XServiceRole4D18036A",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "nodejs18.x"
},
"DependsOn": [
"NODEJS18XServiceRole4D18036A"
]
},
"NODEJS20XServiceRole188A4E38": {
"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"
]
]
}
]
}
},
"NODEJS20X70A25ADE": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
"ZipFile": "exports.handler = async function(event) { return \"success\" }"
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"NODEJS20XServiceRole188A4E38",
"Arn"
]
},
"Runtime": "nodejs20.x"
},
"DependsOn": [
"NODEJS20XServiceRole188A4E38"
]
}
},
"Outputs": {
Expand Down Expand Up @@ -386,6 +436,11 @@
"Value": {
"Ref": "NODEJS18X7B6E6033"
}
},
"NODEJS20XfunctionName": {
"Value": {
"Ref": "NODEJS20X70A25ADE"
}
}
},
"Parameters": {
Expand Down

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

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

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

Loading

0 comments on commit a5acd0f

Please sign in to comment.