Skip to content

Instantly share code, notes, and snippets.

@jinman
Created September 29, 2015 23:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jinman/1cf035c0ecc1cfde1d60 to your computer and use it in GitHub Desktop.
Save jinman/1cf035c0ecc1cfde1d60 to your computer and use it in GitHub Desktop.
RuleToSNS
{
"sql": "SELECT (CASE Clicks WHEN '1' THEN 'Yo' WHEN '2' THEN 'Wassup?' ELSE 'Howdy.' END) AS message FROM 'button/press'",
"ruleDisabled": false,
"actions": [{
"sns": {
"roleArn": "arn:aws:iam::115330095819:role/icebreaker-sns-actions-role",
"targetArn": "arn:aws:sns:us-east-1:115330095819:text-a-phone"
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment