-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpackaged.yaml
More file actions
44 lines (44 loc) · 1.07 KB
/
packaged.yaml
File metadata and controls
44 lines (44 loc) · 1.07 KB
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
42
43
44
AWSTemplateFormatVersion: '2010-09-09'
Description: Jupyter Executor Service.
Parameters:
CORSDomain:
Default: '*'
Type: String
CORSHeaders:
Default: Content-Type, Authorization, X-Amz-Date, X-Api-Key, X-Amz-Security-Token
Type: String
CORSMethods:
Default: DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT
Type: String
EnableCORS:
AllowedValues:
- true
- false
Default: true
Type: String
Resources:
JupyterExecutor:
Properties:
CodeUri: s3://agilevision-playground/caf23bc38bf3ecdb4e099ea4cc78e815
Environment:
Variables:
CORS_DOMAIN:
Ref: CORSDomain
CORS_HEADERS:
Ref: CORSHeaders
CORS_METHODS:
Ref: CORSMethods
ENABLE_CORS:
Ref: EnableCORS
Events:
ExecuteNotebook:
Properties:
Method: any
Path: /
Type: Api
Handler: main.handler
MemorySize: 512
Runtime: python3.6
Timeout: 180
Type: AWS::Serverless::Function
Transform: AWS::Serverless-2016-10-31