Skip to content

Commit d572d07

Browse files
committed
Updated python version
1 parent 660f26e commit d572d07

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

serverless-message-processing/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ curl -X POST \
4646
'https://\${endpoint}/prod/message' \
4747
-H 'Content-Type: application/json' \
4848
-d '{
49-
"messageType": "TYPE_A",
50-
"body": {
51-
"email": "user@@example.com"
52-
},
53-
"timestamp": "2023-11-22T10:30:00Z"
54-
}'
49+
"messageId": "test-456",
50+
"messageType": "TYPE_A",
51+
"payload": {
52+
"email": "user@example.com",
53+
"data": "some data"
54+
},
55+
"timestamp": "2023-11-22T12:00:00Z"
56+
}'
5557
```
5658

5759

serverless-message-processing/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Resources:
136136
Type: AWS::Serverless::Function
137137
Properties:
138138
Handler: app.lambda_handler
139-
Runtime: python3.10
139+
Runtime: python3.11
140140
CodeUri: ./functions/processor/
141141
MemorySize: !Ref ProcessorMemorySize
142142
Timeout: !Ref LambdaTimeout
@@ -156,7 +156,7 @@ Resources:
156156
Type: AWS::Serverless::Function
157157
Properties:
158158
Handler: app.lambda_handler
159-
Runtime: python3.10
159+
Runtime: python3.11
160160
CodeUri: ./functions/decision_maker/
161161
MemorySize: !Ref DecisionMakerMemorySize
162162
Timeout: !Ref LambdaTimeout

0 commit comments

Comments
 (0)