Code from GGMUG AWS Lambda talk
If you were at the GGMUG meetup last night here is the code for the functions I created when I covered the serverless API example.
API POST to Lambda to DynamoDB Put
API GET to Lambda to DynamoDB Scan
Remember, the steps were:
- Create AWS Account
- Create Lambda function
- Create DynamoDB table
- Add policy to Lambda role to allow access to DynamoDB
- Create API Gateway and create methods for GET and POST
- Publish API Gateway
If you run into any trouble or just don’t remember what I did last night then feel free to email me at [email protected].