aws-samples / aws-greengrass-lambda-functions

Example local Lambda functions that can be used with AWS Greengrass and the AWS Greengrass Provisioner.
MIT No Attribution
65 stars 40 forks source link

GGShadowService subscription support #209

Closed QuinnCiccoretti closed 5 years ago

QuinnCiccoretti commented 5 years ago

Is there any way to configure subscriptions to / from the Local Shadow Service as in Module 5? The lambda I'm working on in #170 will need to interface with the local shadow service, but I'm not sure if there is support for this.

timmattison commented 5 years ago

There is support for this but I should have more examples. Converting module 5 to GGP style might be the best way if that’s possible.

This is usually covered by the GGD features. Your deployment can list Greengrass Devices. Those devices are Python scripts and live in the GGDs directory.

See https://github.com/aws-samples/aws-greengrass-lambda-functions/blob/f6ac742bae7170fa8b87f54d72cd87b4550ae555/ggds/discovery-with-shadow/ggd.conf

QuinnCiccoretti commented 5 years ago

Awsome! I'll look into this now. Any other docs or examples would be appreciated if you have them. Edit: this is exactly what I needed. Thanks!