-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
41 lines (38 loc) · 1020 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: AI Interview FastAPI Application
Globals:
Function:
Timeout: 120
MemorySize: 512
Runtime: python3.9
Tags:
test-ai-interview-bootcamp: true
creator: anuj-jadhav
Resources:
AIInterviewFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./package
Handler: lambda_handler.handler
Description: AI Interview FastAPI Application
Events:
ApiEvent:
Type: HttpApi
Properties:
Path: /{proxy+}
Method: ANY
Environment:
Variables:
STAGE: prod
REGION: !Ref AWS::Region
Policies:
- Statement:
- Effect: Allow
Action:
- bedrock:InvokeModel
Resource: '*'
Outputs:
AIInterviewApi:
Description: API Gateway endpoint URL
Value: !Sub "https://${ServerlessHttpApi}.execute-api.${AWS::Region}.amazonaws.com/"