-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yml
More file actions
30 lines (28 loc) · 805 Bytes
/
Copy pathtemplate.yml
File metadata and controls
30 lines (28 loc) · 805 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Globals:
Function:
Timeout: 6
Resources:
GraphQLFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: .
Handler: graphql.handler
Runtime: nodejs12.x
Events:
GraphQL:
Type: Api
Properties:
Path: /graphql
Method: any
Environment:
Variables:
NODE_ENV: production"
Outputs:
# ServerlessRestApi is an implicit API created out of Events key under Serverless::Function
GraphQLApi:
Description: "API Gateway endpoint URL for Prod stage for GraphQL lambda function"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/graphql"
Export:
Name: GraphQLApi