Skip to content

Instantly share code, notes, and snippets.

@johncmckim
Last active August 30, 2016 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johncmckim/b8e4f015ce28737675623e0e765a84d0 to your computer and use it in GitHub Desktop.
Save johncmckim/b8e4f015ce28737675623e0e765a84d0 to your computer and use it in GitHub Desktop.
Garden Aid - Web BFF - Serverless config
service: garden-aid-web-bff
provider:
name: aws
runtime: nodejs4.3
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:DescribeTable
- dynamodb:Query
- dynamodb:Scan
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
Resource: "arn:aws:dynamodb:ap-southeast-2:*:*"
functions:
graphQl:
handler: index.graphql
events:
- http:
path: graphql
method: post
cors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment