Skip to content

Commit 7bc8082

Browse files
authored
Merge pull request #120 from aws-samples/pythonupgrade
Python 3.10 update - LADV and LEDA - Updating functions to Python 3.10 as python 3.7 is EOS
2 parents 09bd58e + 35ca286 commit 7bc8082

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

content/design-patterns/ex8streams/Step3.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Now, run the following command to create the Lambda function.
2222
```bash
2323
aws lambda create-function \
2424
--function-name ddbreplica_lambda --zip-file fileb://ddbreplica_lambda.zip \
25-
--handler ddbreplica_lambda.lambda_handler --timeout 60 --runtime python3.7 \
25+
--handler ddbreplica_lambda.lambda_handler --timeout 60 --runtime python3.10 \
2626
--description "Sample lambda function for dynamodb streams" \
2727
--role $(cat ~/workshop/ddb-replication-role-arn.txt)
2828
```

event-driven/event-driven-cfn.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Resources:
8282
Handler: "lambda_function.lambda_handler"
8383
MemorySize: 256
8484
Role: !Sub "arn:aws:iam::${AWS::AccountId}:role/StateLambdaRole"
85-
Runtime: "python3.8"
85+
Runtime: "python3.10"
8686
Timeout: 180
8787
TracingConfig:
8888
Mode: "PassThrough"
@@ -99,7 +99,7 @@ Resources:
9999
Handler: "lambda_function.lambda_handler"
100100
MemorySize: 256
101101
Role: !Sub "arn:aws:iam::${AWS::AccountId}:role/MapLambdaRole"
102-
Runtime: "python3.8"
102+
Runtime: "python3.10"
103103
Timeout: 60
104104
TracingConfig:
105105
Mode: "PassThrough"
@@ -116,7 +116,7 @@ Resources:
116116
Handler: "lambda_function.lambda_handler"
117117
MemorySize: 256
118118
Role: !Sub "arn:aws:iam::${AWS::AccountId}:role/ReduceLambdaRole"
119-
Runtime: "python3.8"
119+
Runtime: "python3.10"
120120
Timeout: 30
121121
TracingConfig:
122122
Mode: "PassThrough"
@@ -133,7 +133,7 @@ Resources:
133133
Handler: "lambda_function.lambda_handler"
134134
MemorySize: 256
135135
Role: !Sub "arn:aws:iam::${AWS::AccountId}:role/GeneratorLambdaRole"
136-
Runtime: "python3.8"
136+
Runtime: "python3.10"
137137
Timeout: 55
138138
TracingConfig:
139139
Mode: "PassThrough"

0 commit comments

Comments
 (0)