File tree Expand file tree Collapse file tree 4 files changed +41
-2
lines changed Expand file tree Collapse file tree 4 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 23
23
24
24
25
25
26
- #### [ S3 (Simple Cloud Storage)] ( s3 )
26
+ #### [ S3 (Simple Storage Service )] ( s3 )
27
27
28
28
29
29
95
95
96
96
97
97
98
+ ---
99
+
100
+
101
+ ## Other AWS Lambda Labs
102
+
103
+
104
+ ### [ AWS Lambda: Node.js Labs] ( https://github.com/a-patel/aws-lambda-nodejs-labs )
105
+
106
+
107
+ ### [ AWS Lambda: .NET Labs] ( https://github.com/a-patel/aws-dotnet-labs )
108
+
109
+
110
+
111
+
112
+
113
+ ---
114
+
115
+
116
+
117
+
118
+
98
119
99
120
100
121
Original file line number Diff line number Diff line change 1
1
# AWS Lambda: Python Labs - S3
2
2
3
- > AWS Lambda - Python Examples - S3 (Simple Cloud Storage)
3
+ > AWS Lambda - Python Examples - S3 (Simple Storage Service )
4
4
5
5
6
6
Original file line number Diff line number Diff line change
1
+ import json
2
+ import logging
3
+
4
+
5
+ log = logging .getLogger ()
6
+ log .setLevel (logging .INFO )
7
+
8
+
9
+ def lambda_handler (event , context ):
10
+ log .debug ('Event: %s' , event )
11
+ # print("Received event: " + json.dumps(event, indent=2))
12
+
13
+ message = event ['Records' ][0 ]['Sns' ]['Message' ]
14
+ print ("From SNS: " + message )
15
+
16
+ # TODO: do your work
17
+
18
+ return message
You can’t perform that action at this time.
0 commit comments