Skip to content

Instantly share code, notes, and snippets.

@bboure
Last active December 20, 2020 15:56
Show Gist options
  • Save bboure/b1b1f6e1d56e56e39b9c329727d955d8 to your computer and use it in GitHub Desktop.
Save bboure/b1b1f6e1d56e56e39b9c329727d955d8 to your computer and use it in GitHub Desktop.
serverless-part1.yml
service:
name: appsync-long-cache
plugins:
- serverless-appsync-plugin
provider:
name: aws
custom:
appSync:
name: long-cache-demo
schema: schema.graphql
authenticationType: API_KEY
apiKeys:
- name: myApiKey
expiresAfter: 1y
mappingTemplates:
- dataSource: wikipedia
type: Query
field: wikipedia
dataSources:
- type: HTTP
name: wikipedia
description: 'Wikipedia api'
config:
endpoint: https://en.wikipedia.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment