Skip to content

ijin/sns-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sns-slack

consumes Amazon SNS json and posts to Slack

post message to SNS

payload = {
    "channel": "#test",
    "username": "bot",
    "text": "hi!"
}
self.sns.publish(
    TopicArn=SNS_ARN,
    Message=json.dumps({"default": json.dumps(self.payload)}),
    MessageStructure='json'
)

About

consumes SNS json and posts to slack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages