Skip to content

Commit 213cedc

Browse files
authored
Update Lambda Python sample to Lambda Python 3.13 Runtime (#322)
*Issue description:* *Description of changes:* *Rollback procedure:* <Can we safely revert this commit if needed? If not, detail what must be done to safely revert and why it is needed.> *Ensure you've run the following tests on your changes and include the link below:* To do so, create a `test.yml` file with `name: Test` and workflow description to test your changes, then remove the file for your PR. Link your test run in your PR description. This process is a short term solution while we work on creating a staging environment for testing. NOTE: TESTS RUNNING ON A SINGLE EKS CLUSTER CANNOT BE RUN IN PARALLEL. See the [needs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds) keyword to run tests in succession. - Run Java EKS on `e2e-playground` in us-east-1 and eu-central-2 - Run Python EKS on `e2e-playground` in us-east-1 and eu-central-2 - Run metric limiter on EKS cluster `e2e-playground` in us-east-1 and eu-central-2 - Run EC2 tests in all regions - Run K8s on a separate K8s cluster (check IAD test account for master node endpoints; these will change as we create and destroy clusters for OS patching) By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 1149f7c commit 213cedc

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

terraform/python/lambda/lambda/main.tf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resource "aws_lambda_layer_version" "sdk_layer" {
55
count = var.is_canary ? 0 : 1
66
layer_name = var.sdk_layer_name
77
filename = "${var.layer_artifacts_directory}/layer.zip"
8-
compatible_runtimes = ["python3.10", "python3.11", "python3.12"]
8+
compatible_runtimes = ["python3.10", "python3.11", "python3.12", "python3.13"]
99
license_info = "Apache-2.0"
1010
source_code_hash = filebase64sha256("${var.layer_artifacts_directory}/layer.zip")
1111
# filename = "${var.kube_directory_path}/config"
@@ -30,9 +30,6 @@ module "hello-lambda-function" {
3030

3131
environment_variables = {
3232
AWS_LAMBDA_EXEC_WRAPPER = "/opt/otel-instrument"
33-
OTEL_AWS_APPLICATION_SIGNALS_ENABLED = "true"
34-
OTEL_AWS_APPLICATION_SIGNALS_RUNTIME_ENABLED = "false"
35-
OTEL_METRICS_EXPORTER = "none"
3633
}
3734

3835
tracing_mode = var.tracing_mode

terraform/python/lambda/lambda/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variable "function_name" {
22
type = string
33
description = "Name of sample app function / API gateway"
4-
default = "aws-opentelemetry-distro-nodejs"
4+
default = "aws-opentelemetry-distro-python"
55
}
66

77
variable "sdk_layer_name" {
@@ -19,7 +19,7 @@ variable "tracing_mode" {
1919
variable "runtime" {
2020
type = string
2121
description = "Python runtime version used for sample Lambda Function"
22-
default = "python3.12"
22+
default = "python3.13"
2323
}
2424

2525
variable "architecture" {

0 commit comments

Comments
 (0)