Skip to content

Commit 65e9b94

Browse files
author
Marcel Radischat
committed
Renamed directory and removed __init__ file
This folder should not be imported/compiled by Python, it serves only as a template folder. Files in here will be copied over to the new project making use of AWS Lambda
1 parent 9e879c8 commit 65e9b94

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
region: us-east-1
2+
3+
function_name: my_lambda_function
4+
handler: service.handler
5+
# role: lambda_basic_execution
6+
description: My first lambda function
7+
8+
# if access key and secret are left blank, boto will use the credentials
9+
# defined in the [default] section of ~/.aws/credentials.
10+
aws_access_key_id:
11+
aws_secret_access_key:
12+
13+
# dist_directory: dist
14+
# timeout: 15
15+
# memory_size: 512
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"pi": 3.14,
3+
"e": 2.718
4+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -*- coding: utf-8 -*-
2+
3+
4+
def handler(event, context):
5+
# Your code goes here!
6+
e = event.get('e')
7+
pi = event.get('pi')
8+
return e + pi

0 commit comments

Comments
 (0)