Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Configs with serverless-api-gateway-caching plugin
service: aws-nodejs
custom:
apiGatewayCaching:
enabled: true
provider:
name: aws
runtime: nodejs8.10
functions:
hello:
handler: handler.hello
events:
- http:
path: test
method: get
private: true
cors: true
request:
parameters:
headers:
Authorization: true
caching:
enabled: true
ttlInSeconds: 60
dataEncrypted: false
perKeyInvalidation:
requireAuthorization: true
cacheKeyParameters:
- name: request.header.Authorization
plugins:
- serverless-api-gateway-caching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment