Blame view

heartbeat-template.yaml 1.18 KB
4b0919c5c   Alex Mukha   Added CF config.
1
2
3
4
  ´╗┐AWSTemplateFormatVersion: '2010-09-09'
  Transform: 'AWS::Serverless-2016-10-31'
  Description: An AWS Serverless Heartbeat receiver
  Resources:
a847fc840   Alex Mukha   Refactored the co...
5
6
    HeartbeatLambda:
      Type: AWS::Serverless::Function
4b0919c5c   Alex Mukha   Added CF config.
7
8
9
      Properties:
        Handler: org.alfresco.heartbeat.handler.HeartbeatRequestHandler
        Runtime: java8
a847fc840   Alex Mukha   Refactored the co...
10
        Description: 'Heartbeat lambda'
4b0919c5c   Alex Mukha   Added CF config.
11
12
        MemorySize: 512
        Timeout: 15
a847fc840   Alex Mukha   Refactored the co...
13
        CodeUri: ./target/heartbeat-2.0-SNAPSHOT.jar
4b0919c5c   Alex Mukha   Added CF config.
14
15
        Policies:
          - AmazonDynamoDBFullAccess
a847fc840   Alex Mukha   Refactored the co...
16
17
18
19
        Environment:
          Variables:
            TABLE_NAME:
              Ref: Table
4b0919c5c   Alex Mukha   Added CF config.
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
        Events:
          PostRequest:
            Type: Api
            Properties:
              Path: /
              Method: post
  
    Table:
      Type: AWS::DynamoDB::Table
      Properties:
        KeySchema:
          -
            AttributeName: "repositoryId"
            KeyType: "HASH"
          -
            AttributeName: "repositoryVersion"
            KeyType: "RANGE"
        AttributeDefinitions:
          -
            AttributeName: 'repositoryId'
            AttributeType: 'S'
          -
            AttributeName: 'repositoryVersion'
            AttributeType: 'S'
4b0919c5c   Alex Mukha   Added CF config.
44
45
46
        ProvisionedThroughput:
          ReadCapacityUnits: "5"
          WriteCapacityUnits: "5"