Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (53 sloc) 1.89 KB
# 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:
# For parameter definitions, see 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
Loggers:
# For parameter definitions, see https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/greengrass.html#Greengrass.Client.create_logger_definition
- Component: Lambda # 'GreengrassSystem'|'Lambda'
Id: logger_1 # Arbitrary string
Level: DEBUG # 'DEBUG'|'INFO'|'WARN'|'ERROR'|'FATAL'
Space: 1024 # The amount of file space, in KB, to use if the local file system is used for logging purposes
Type: FileSystem # 'FileSystem'|'AWSCloudWatch'
Devices: # not implemented
- name: ml_take2_thing_1
key_path: ./certs