-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
30 lines (26 loc) · 768 Bytes
/
serverless.yml
File metadata and controls
30 lines (26 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
service: kiteapi
frameworkVersion: "2"
provider:
name: aws
stage: ${opt:stage}
region: eu-central-1
lambdaHashingVersion: 20201221
memorySize: 256
apiName: ${self:service}-${opt:stage}
apiGateway:
description: Kite spots REST API ${self:service}
metrics: true
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:GetItem
Resource: "arn:aws:dynamodb:${opt:region, self:provider.region}:*:table/kite_spots"
httpApi:
authorizers:
auth0:
type: jwt
identitySource: $request.header.Authorization
issuerUrl: https://<tenant_name>.eu.auth0.com/ # change_me
audience:
- https://<tenant_name>.eu.auth0.com/api/v2/ # change_me
functions: ${file(functions.yml):functions}