forked from awslabs/aws-lambda-web-adapter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
template.yaml
42 lines (37 loc) · 1003 Bytes
/
template.yaml
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
31
32
33
34
35
36
37
38
39
40
41
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
sam-app
Sample SAM Template for sam-app
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 29
Resources:
ExpressFunction:
Type: AWS::Serverless::Function
Properties:
PackageType: Image
MemorySize: 1024
Environment:
Variables:
RUST_LOG: info
Events:
Root:
Type: HttpApi
Properties:
Path: /
Method: ANY
Petstore:
Type: HttpApi
Properties:
Path: /{proxy+}
Method: ANY
Metadata:
DockerTag: v1
DockerContext: ./app
Dockerfile: Dockerfile
Outputs:
ExpressApi:
Description: "API Gateway endpoint URL for Prod stage for Express function"
Value: !Sub "https://${ServerlessHttpApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/"