-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
45 lines (40 loc) · 970 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
42
43
44
45
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
portfolio-v3-fetcher
Sample SAM Template for portfolio-v3-fetcher
Globals:
Function:
Timeout: 600
MemorySize: 128
Parameters:
AmplifyAppId:
Type: String
AmplifyAppEnv:
Type: String
Resources:
FetcherFunction:
Type: AWS::Serverless::Function
Properties:
PackageType: Image
Policies:
- AmazonDynamoDBFullAccess
Architectures:
- x86_64
Events:
ScheduledEvent:
Type: Schedule
Properties:
Schedule: cron(0 23 * * ? *)
Environment:
Variables:
AMPLIFY_APP_ID: !Ref AmplifyAppId
AMPLIFY_APP_ENV: !Ref AmplifyAppEnv
Metadata:
DockerTag: ruby3.2-v1
DockerContext: ./fetcher
Dockerfile: Dockerfile
Outputs:
FetcherFunction:
Description: "Fetcher Lambda Function ARN"
Value: !GetAtt FetcherFunction.Arn