Working (?) courses get func
This commit is contained in:
@@ -21,6 +21,16 @@ provider:
|
||||
name: aws
|
||||
runtime: nodejs8.10
|
||||
region: us-east-2
|
||||
iamRoleStatements:
|
||||
- Effect: Allow
|
||||
Action:
|
||||
- dynamodb:Query
|
||||
- dynamodb:Scan
|
||||
- dynamodb:GetItem
|
||||
- dynamodb:PutItem
|
||||
- dynamodb:UpdateItem
|
||||
- dynamodb:DeleteItem
|
||||
Resource: "*"
|
||||
|
||||
# you can overwrite defaults here
|
||||
# stage: dev
|
||||
@@ -56,7 +66,7 @@ provider:
|
||||
# - exclude-me-dir/**
|
||||
|
||||
functions:
|
||||
hello:
|
||||
courses:
|
||||
handler: handlers/courses/get.default
|
||||
events:
|
||||
- http:
|
||||
@@ -109,19 +119,23 @@ functions:
|
||||
# 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
|
||||
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
|
||||
ProvisionedThroughput:
|
||||
ReadCapacityUnits: 1
|
||||
WriteCapacityUnits: 1
|
||||
|
||||
plugins:
|
||||
- serverless-offline
|
||||
Reference in New Issue
Block a user