Skip to content

Instantly share code, notes, and snippets.

@jacoelho
Created February 15, 2016 20:10
Show Gist options
  • Save jacoelho/889c3fff99a89d7618b1 to your computer and use it in GitHub Desktop.
Save jacoelho/889c3fff99a89d7618b1 to your computer and use it in GitHub Desktop.
import json
import boto3
def lambda_handler(event, context):
client = boto3.client('sns', region_name='us-west-2')
response = client.publish(
TopicArn='arn:aws:sns:us-west-2:XXXXXXX:ansible-api',
Message=json.dumps(event),
Subject='ansible api event',
MessageStructure='string',
)
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment