-
Notifications
You must be signed in to change notification settings - Fork 0
/
recipe.yaml
49 lines (49 loc) · 2.01 KB
/
recipe.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
---
RecipeFormatVersion: '2020-01-25'
ComponentName: aws.greengrass.labs.telemetry.InfluxDBPublisher
ComponentVersion: '2.1.0'
ComponentDescription: 'A component that relays and publishes telemetry from Greengrass to InfluxDB.'
ComponentPublisher: Amazon
ComponentDependencies:
aws.greengrass.labs.database.InfluxDB:
VersionRequirement: "~2.1.0"
DependencyType: HARD
aws.greengrass.telemetry.NucleusEmitter:
VersionRequirement: "1.0.1"
DependencyType: HARD
ComponentConfiguration:
DefaultConfiguration:
TokenRequestTopic: 'greengrass/influxdb/token/request'
TokenResponseTopic: 'greengrass/influxdb/token/response'
accessControl:
aws.greengrass.ipc.pubsub:
aws.greengrass.labs.telemetry.InfluxDBPublisher:pubsub:1:
policyDescription: Allows access to subscribe to local Greengrass telemetry.
operations:
- aws.greengrass#SubscribeToTopic
resources:
- "$local/greengrass/telemetry"
aws.greengrass.labs.telemetry.InfluxDBPublisher:pubsub:2:
policyDescription: Allows access to publish to the token request topic.
operations:
- aws.greengrass#PublishToTopic
resources:
- "greengrass/influxdb/token/request"
aws.greengrass.labs.telemetry.InfluxDBPublisher:pubsub:3:
policyDescription: Allows access to subscribe to the token response topic.
operations:
- aws.greengrass#SubscribeToTopic
resources:
- "greengrass/influxdb/token/response"
Manifests:
- Platform:
os: /darwin|linux/
Lifecycle:
Run:
RequiresPrivilege: false
script: |-
set -eu
python3 -u {artifacts:decompressedPath}/aws-greengrass-labs-telemetry-influxdbpublisher/src/influxDBTelemetryPublisher.py --publish_topic {configuration:/TokenRequestTopic} --subscribe_topic {configuration:/TokenResponseTopic}
Artifacts:
- URI: s3://aws-greengrass-labs-telemetry-influxdbpublisher.zip
Unarchive: ZIP