Commit 4b0919c5c5c9b3d92b9c78eed5df17c20b0770ed
1 parent
87ab75489f
Exists in
master
Added CF config.
Showing
1 changed file
with
44 additions
and
0 deletions
Show diff stats
src/main/resources/heartbeat-template.yaml
... | ... | @@ -0,0 +1,44 @@ |
1 | +AWSTemplateFormatVersion: '2010-09-09' | |
2 | +Transform: 'AWS::Serverless-2016-10-31' | |
3 | +Description: An AWS Serverless Heartbeat receiver | |
4 | +Resources: | |
5 | + Heartbeat: | |
6 | + Type: 'AWS::Serverless::Function' | |
7 | + Properties: | |
8 | + Handler: org.alfresco.heartbeat.handler.HeartbeatRequestHandler | |
9 | + Runtime: java8 | |
10 | + Description: 'Heartbeat receiver' | |
11 | + MemorySize: 512 | |
12 | + Timeout: 15 | |
13 | + CodeUri: s3://alfresco-heartbeat/heartbeat-2.0-SNAPSHOT.jar | |
14 | + Policies: | |
15 | + - AmazonDynamoDBFullAccess | |
16 | + - AmazonS3ReadOnlyAccess | |
17 | + Events: | |
18 | + PostRequest: | |
19 | + Type: Api | |
20 | + Properties: | |
21 | + Path: / | |
22 | + Method: post | |
23 | + | |
24 | + Table: | |
25 | + Type: AWS::DynamoDB::Table | |
26 | + Properties: | |
27 | + KeySchema: | |
28 | + - | |
29 | + AttributeName: "repositoryId" | |
30 | + KeyType: "HASH" | |
31 | + - | |
32 | + AttributeName: "repositoryVersion" | |
33 | + KeyType: "RANGE" | |
34 | + AttributeDefinitions: | |
35 | + - | |
36 | + AttributeName: 'repositoryId' | |
37 | + AttributeType: 'S' | |
38 | + - | |
39 | + AttributeName: 'repositoryVersion' | |
40 | + AttributeType: 'S' | |
41 | + TableName: 'heartbeat' | |
42 | + ProvisionedThroughput: | |
43 | + ReadCapacityUnits: "5" | |
44 | + WriteCapacityUnits: "5" | ... | ... |