A Lambda function which fetches the room temperature from Nature Remo Cloud API, then posts it to CloudWatch Metrics every minute.
These parameters must be set in System Manager Parameter Store with encryption.
key | description |
---|---|
/natureRemoToCloudWatchFunction/natureRemoAccessToken |
Nature Remo Cloud API access token |
/natureRemoToCloudWatchFunction/deviceID |
Device ID retrieved from List Devices API |
/natureRemoToCloudWatchFunction/sentryDsn |
(Optional) Sentry DSN |
make
make test
The following environment variables are required to deploy:
- AWS credentials (
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
,AWS_DEFAULT_REGION
) AWS_S3_BUCKET
- S3 bucket to store Lambda artifact
AWS_CLOUDFORMATION_STACK_NAME
- CloudFormation stack name to use
make deploy
Daisuke Fujita (@dtan4)