-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yaml
More file actions
30 lines (28 loc) · 716 Bytes
/
template.yaml
File metadata and controls
30 lines (28 loc) · 716 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
Description: >
Serverless FastAPI
Resources:
FastAPIFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: .
Handler: main.handler
Runtime: python3.9
Architectures:
- x86_64
Events:
CatchAll:
Type: Api
Properties:
Path: /{proxy+}
Method: ANY
RootPath:
Type: Api
Properties:
Path: /
Method: ANY
Outputs:
FastApiEndpoint:
Description: "API Gateway endpoint URL for Prod stage"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/"