January 8th 2020¶
- Created a DynamoDB table called “choclate_user” with email as my primary key
- Created rows in the table to ensure that is working correctly. I used the following information: first_name, last_name and age of the user
- I changed the capacity of my table from 5 to 1 in order to save money, as that is more than enough for the services I will be needing
- Created a new lambda function called get_user_info
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/env python3
# Created by: Trinity Armstrong
# Created on: Jan 2020
# This function is the Hello, World! Lambda function
import json
def lambda_handler(event, context):
# TODO implement
return_var = {
'statusCode': 200,
'body': json.dumps('Hello, ' + event['name'])
}
return return_var
|
- copy pasted my code from the hello_world lambda function into my new function
- Tested my new lambda function by outputting “Hello, Trinity Armstrong”