forked from dzimine/greengo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgreengo.yaml
51 lines (46 loc) · 1.38 KB
/
greengo.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
46
47
48
49
50
# Greeengrass Group definition file
Group:
name: GreengoGroup
Cores:
- name: GreengoGroup_core_1
key_path: ./certs
config_path: ./config
SyncShadow: False
Lambdas:
- name: GreengrassHelloWorld
handler: function.handler
package: lambdas/GreengrassHelloWorld
alias: dev
# role: 'arn:aws:iam::000000000000:role/base_lambda_role' # Use an existing role instead of auto-created one
environment:
foo: bar
greengrassConfig:
MemorySize: 128000 # Kb, ask AWS why
Timeout: 10 # Sec
Pinned: True # Set True for long-lived functions
Environment:
AccessSysfs: False
# ResourceAccessPolicies:
# - ResourceId: 1_path_to_input
# Permission: 'rw'
Variables:
name: value
Subscriptions:
- Source: Lambda::GreengrassHelloWorld
Subject: hello/world
Target: cloud
- Source: cloud
Subject: hello/world
Target: Lambda::GreengrassHelloWorld
Resources:
# Resource as defined at http://boto3.readthedocs.io/en/latest/reference/services/greengrass.html#Greengrass.Client.create_resource_definition_version
- Name: path_to_input
Id: resource_1_path_to_input
LocalVolumeResourceData:
SourcePath: /images
DestinationPath: /input
GroupOwnerSetting:
AutoAddGroupOwner: True
Devices: # not implemented
- name: ml_take2_thing_1
key_path: ./certs