Skip to content

Instantly share code, notes, and snippets.

@lewisdaly
Created June 12, 2018 01:37
Show Gist options
  • Save lewisdaly/d0f745f3c095c125c453acb067463a1c to your computer and use it in GitHub Desktop.
Save lewisdaly/d0f745f3c095c125c453acb067463a1c to your computer and use it in GitHub Desktop.
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}
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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment