-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtemplate.yaml
More file actions
45 lines (37 loc) · 835 Bytes
/
template.yaml
File metadata and controls
45 lines (37 loc) · 835 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: {% include "_cctmp/class_name.txt" %}
Parameters:
RailsEnv:
Type: String
Default: staging
AllowedValues:
- staging
- production
Globals:
Function:
Architectures:
- arm64
AutoPublishAlias: live
DeploymentPreference:
Type: AllAtOnce
Environment:
Variables:
RAILS_ENV: !Ref RailsEnv
Timeout: 30
Resources:
RailsLambda:
Type: AWS::Serverless::Function
Metadata:
DockerContext: .
Dockerfile: Dockerfile
DockerTag: web
Properties:
FunctionUrlConfig:
AuthType: NONE
MemorySize: 1792
PackageType: Image
Outputs:
RailsLambdaUrl:
Description: Lambda Function URL
Value: !GetAtt RailsLambdaUrl.FunctionUrl