Skip to content

Commit 2717c5a

Browse files
authored
feat(lambda): new lambda runtime provided.al2023 (#27856)
Preparing the launch of this new runtime. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent e6b59d6 commit 2717c5a

File tree

13 files changed

+576
-6
lines changed

13 files changed

+576
-6
lines changed

packages/@aws-cdk/aws-lambda-go-alpha/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"devDependencies": {
8080
"@aws-cdk/cdk-build-tools": "0.0.0",
8181
"@aws-cdk/integ-runner": "0.0.0",
82+
"@aws-cdk/integ-tests-alpha": "0.0.0",
8283
"@aws-cdk/pkglint": "0.0.0",
8384
"@types/jest": "^29.5.5",
8485
"aws-cdk-lib": "0.0.0",

packages/@aws-cdk/aws-lambda-go-alpha/test/bundling.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ test('Local bundling', () => {
185185
environment: {
186186
KEY: 'value',
187187
},
188-
runtime: Runtime.PROVIDED_AL2,
188+
runtime: Runtime.PROVIDED_AL2023,
189189
architecture: Architecture.X86_64,
190190
});
191191

@@ -213,7 +213,7 @@ test('Incorrect go version', () => {
213213
const bundler = new Bundling({
214214
entry,
215215
moduleDir,
216-
runtime: Runtime.PROVIDED_AL2,
216+
runtime: Runtime.PROVIDED_AL2023,
217217
architecture: Architecture.X86_64,
218218
});
219219

@@ -308,7 +308,7 @@ test('with command hooks', () => {
308308
Bundling.bundle({
309309
entry,
310310
moduleDir,
311-
runtime: Runtime.PROVIDED_AL2,
311+
runtime: Runtime.PROVIDED_AL2023,
312312
architecture: Architecture.X86_64,
313313
commandHooks: {
314314
beforeBundling(inputDir: string, outputDir: string): string[] {

packages/@aws-cdk/aws-lambda-go-alpha/test/integ.function.provided.al2023.js.snapshot/cdk-integ-lambda-golang-provided-al2023.assets.json

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"Resources": {
3+
"gohandlerdockerServiceRole70394790": {
4+
"Type": "AWS::IAM::Role",
5+
"Properties": {
6+
"AssumeRolePolicyDocument": {
7+
"Statement": [
8+
{
9+
"Action": "sts:AssumeRole",
10+
"Effect": "Allow",
11+
"Principal": {
12+
"Service": "lambda.amazonaws.com"
13+
}
14+
}
15+
],
16+
"Version": "2012-10-17"
17+
},
18+
"ManagedPolicyArns": [
19+
{
20+
"Fn::Join": [
21+
"",
22+
[
23+
"arn:",
24+
{
25+
"Ref": "AWS::Partition"
26+
},
27+
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
28+
]
29+
]
30+
}
31+
]
32+
}
33+
},
34+
"gohandlerdockerAE04F1B8": {
35+
"Type": "AWS::Lambda::Function",
36+
"Properties": {
37+
"Code": {
38+
"S3Bucket": {
39+
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
40+
},
41+
"S3Key": "92cf51642c9fbfef03751059a700f012eb605f85114cafc66e2fb70e37b18c64.zip"
42+
},
43+
"Handler": "bootstrap",
44+
"Role": {
45+
"Fn::GetAtt": [
46+
"gohandlerdockerServiceRole70394790",
47+
"Arn"
48+
]
49+
},
50+
"Runtime": "provided.al2023"
51+
},
52+
"DependsOn": [
53+
"gohandlerdockerServiceRole70394790"
54+
]
55+
}
56+
},
57+
"Parameters": {
58+
"BootstrapVersion": {
59+
"Type": "AWS::SSM::Parameter::Value<String>",
60+
"Default": "/cdk-bootstrap/hnb659fds/version",
61+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
62+
}
63+
},
64+
"Rules": {
65+
"CheckBootstrapVersion": {
66+
"Assertions": [
67+
{
68+
"Assert": {
69+
"Fn::Not": [
70+
{
71+
"Fn::Contains": [
72+
[
73+
"1",
74+
"2",
75+
"3",
76+
"4",
77+
"5"
78+
],
79+
{
80+
"Ref": "BootstrapVersion"
81+
}
82+
]
83+
}
84+
]
85+
},
86+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
87+
}
88+
]
89+
}
90+
}
91+
}

packages/@aws-cdk/aws-lambda-go-alpha/test/integ.function.provided.al2023.js.snapshot/cdk.out

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-lambda-go-alpha/test/integ.function.provided.al2023.js.snapshot/integ.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-lambda-go-alpha/test/integ.function.provided.al2023.js.snapshot/lambdagoruntimeDefaultTestDeployAssert366012A1.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-lambda-go-alpha/test/integ.function.provided.al2023.js.snapshot/lambdagoruntimeDefaultTestDeployAssert366012A1.template.json

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-lambda-go-alpha/test/integ.function.provided.al2023.js.snapshot/manifest.json

+119
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)