Skip to content

Commit 65235ff

Browse files
committed
wtf how did tabs get in there
1 parent 4ee79f2 commit 65235ff

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

content/pages/07-web-development/31-aws-lambda.markdown

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,16 @@ year after its release, in October 2015. Now that Lambda has support for both Py
2929
### Python-specific AWS Lambda resources
3030
* [Building Scikit-Learn For AWS Lambda](https://serverlesscode.com/post/scikitlearn-with-amazon-linux-container/)
3131

32+
* [Going Serverless with AWS Lambda and API Gateway](http://blog.ryankelly.us/2016/08/07/going-serverless-with-aws-lambda-and-api-gateway.html)
33+
34+
35+
### General AWS Lambda resources
36+
* [The Serverless Start-Up - Down With Servers!](http://highscalability.com/blog/2015/12/7/the-serverless-start-up-down-with-servers.html)
37+
38+
* [](http://www.allthingsdistributed.com/2016/06/aws-lambda-serverless-reference-architectures.html)
39+
40+
* The
41+
[AWS Lambda tag](https://aws.amazon.com/blogs/aws/category/aws-lambda/)
42+
on the official AWS blog contains all the related first-party tutorials
43+
and announcement
3244

content/posts/170428-python-2-7-aws-lambda.markdown

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ import os
9191

9292

9393
def lambda_handler(event, context):
94-
what_to_print = os.environ.get("what_to_print")
95-
how_many_times = int(os.environ.get("how_many_times"))
96-
97-
# make sure what_to_print and how_many_times values exist
98-
if what_to_print and how_many_times > 0:
99-
for i in range(0, how_many_times):
100-
print(what_to_print)
101-
return what_to_print
102-
return None
94+
what_to_print = os.environ.get("what_to_print")
95+
how_many_times = int(os.environ.get("how_many_times"))
96+
97+
# make sure what_to_print and how_many_times values exist
98+
if what_to_print and how_many_times > 0:
99+
for i in range(0, how_many_times):
100+
print(what_to_print)
101+
return what_to_print
102+
return None
103103
```
104104

105105
The above code has the required `lambda_handler` function definition

0 commit comments

Comments
 (0)