-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction.jsonnet
More file actions
32 lines (32 loc) · 963 Bytes
/
function.jsonnet
File metadata and controls
32 lines (32 loc) · 963 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
local caller = std.native('caller_identity')();
local must_env = std.native('must_env');
{
Description: 'Example of gdnotify',
Architectures: ['arm64'],
Environment: {
Variables: {
GOOGLE_APPLICATION_CREDENTIALS: 'arn:aws:ssm:ap-northeast-1:%s:parameter/gdnotify/GOOGLE_APPLICATION_CREDENTIALS' % [caller.Account],
GDNOTIFY_EVENTBRIDGE_EVENT_BUS: 'gdnotify',
GDNOTIFY_LOG_FORMAT: 'json',
GDNOTIFY_LOG_LEVEL: 'info',
GDNOTIFY_EXPIRATION: '168h',
GDNOTIFY_DDB_AUTO_CREATE: 'true',
GDNOTIFY_S3_BUCKET: must_env('TF_VAR_gdnotify_s3_bucket_name'),
GDNOTIFY_S3_COPY_CONFIG: 's3copy.yaml',
TZ: 'Asia/Tokyo',
},
},
FunctionName: 'gdnotify',
Handler: 'bootstrap',
MemorySize: 128,
Role: 'arn:aws:iam::%s:role/gdnotify' % [caller.Account],
Runtime: 'provided.al2023',
Tags: {},
Timeout: 30,
TracingConfig: {
Mode: 'PassThrough',
},
LoggingConfig: {
LogFormat: 'JSON',
},
}