WIP on courses get function

This commit is contained in:
Ben Ramey
2018-09-18 07:14:04 -05:00
parent 435060a764
commit 071038b7f8
5 changed files with 42 additions and 43 deletions

View File

@@ -57,11 +57,12 @@ provider:
functions:
hello:
handler: handlers/hello/get.hello
handler: handlers/courses/get.default
events:
- http:
path: hello
path: courses
method: get
cors: true
# The following are a few example events you can configure
# NOTE: Please make sure to change your handler code to work with those events
@@ -107,6 +108,20 @@ functions:
# NewOutput:
# Description: "Description for the output"
# Value: "Some output value"
resources:
coursesTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: eg_courses
AttributeDefinitions:
- AttributeName: name
AttributeType: s
KeySchema:
- AttributeName: name
KeyType: HASH
Tags:
- Key: app
Value: ecs-grader
plugins:
- serverless-offline