Skip to content

Commit 73e0452

Browse files
committed
chore: Add new supported Python runtime to AWS Lambda.
Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
1 parent e7e8e36 commit 73e0452

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

bin/aws-lambda/build_and_publish_lambda_layer.py

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,34 @@
128128
print(f"===> Uploading layer to AWS {region} ")
129129
profile = "china" if region in cn_regions else "non-china"
130130

131-
response = check_output(["aws", "--region", region, "lambda", "publish-layer-version",
132-
"--description",
133-
"Provides Instana tracing and monitoring of AWS Lambda functions built with Python",
134-
"--license-info", "MIT", "--output", "json",
135-
"--layer-name", LAYER_NAME, "--zip-file", aws_zip_filename,
136-
"--compatible-runtimes", "python3.8", "python3.9", "python3.10", "python3.11", "python3.12",
137-
"--profile", profile])
131+
response = check_output(
132+
[
133+
"aws",
134+
"lambda",
135+
"publish-layer-version",
136+
"--layer-name",
137+
LAYER_NAME,
138+
"--description",
139+
"Provides Instana tracing and monitoring of AWS Lambda functions built with Python",
140+
"--license-info",
141+
"MIT",
142+
"--output",
143+
"json",
144+
"--zip-file",
145+
aws_zip_filename,
146+
"--compatible-runtimes",
147+
"python3.8",
148+
"python3.9",
149+
"python3.10",
150+
"python3.11",
151+
"python3.12",
152+
"python3.13",
153+
"--region",
154+
region,
155+
"--profile",
156+
profile,
157+
]
158+
)
138159

139160
json_data = json.loads(response)
140161
version = json_data["Version"]

0 commit comments

Comments
 (0)