Created
June 12, 2018 01:38
-
-
Save lewisdaly/8b6c4bd92bc58588cf2815cadcc856f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: TangleTrigger | |
provider: | |
name: aws | |
runtime: nodejs6.10 | |
stage: dev | |
region: ap-southeast-2 | |
environment: | |
IOTA_URL: ${env:IOTA_URL} | |
IOTA_ADDRESS: ${env:IOTA_ADDRESS} | |
S3_BUCKET_NAME: ${env:S3_BUCKET_NAME} | |
SNS_TOPIC_NAME: ${env:SNS_TOPIC_NAME} | |
SNS_TOPIC_ARN: | |
Ref: TxNotification | |
functions: | |
checkAddress: | |
handler: handler.checkAddress | |
events: | |
- schedule: | |
name: shedule-check-address | |
description: check the tangle for a given address | |
rate: rate(30 minutes) | |
enabled: true | |
resources: | |
Resources: | |
ExistingTxs: | |
Type: AWS::S3::Bucket | |
Properties: | |
BucketName: ${env:S3_BUCKET_NAME} | |
TxNotification: | |
Type: AWS::SNS::Topic | |
Properties: | |
TopicName: ${env:SNS_TOPIC_NAME} | |
Subscription: | |
- Endpoint: ${env:SNS_EMAIL} | |
Protocol: email |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment