-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yml
64 lines (58 loc) · 1.48 KB
/
template.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Description: A test of provided.al2023.
Parameters:
Environment:
Type: String
Description: The environment as which to run Unpoller.
AllowedValues:
- development
- staging
- production
ConstraintDescription: Value must be a known environment.
DeploymentMode:
Type: String
Description: >-
The mode by which the application will be deployed.
Developer sandboxes emulate live environments with
some features disabled by default.
AllowedValues:
- sandbox
- live
Default: sandbox
ConstraintDescription: Value must be a known deployment mode.
Mappings:
Log:
development:
Level: Debug
staging:
Level: Debug
production:
Level: Information
Globals:
Function:
Runtime: provided.al2
Timeout: 30
MemorySize: 1024
Tracing: Active
AutoPublishAlias: !Ref DeploymentMode
Environment:
Variables:
DOTNET_ENVIRONMENT: !Ref Environment
Logging__LogLevel__Default: !FindInMap [ Log, !Ref Environment, Level ]
Resources:
Try:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./src/Try/
Handler: Try
Description: A test of provided.al2023
Policies:
- Version: 2012-10-17
Statement:
Action: s3:ListBucket
Effect: Allow
Resource: !Sub arn:${AWS::Partition}:s3:::fen-object-share
Metadata:
BuildMethod: dotnet7