import json import boto3 def main(event, context): print(event) message = "Probando SNS desde lambda..." subject = "BSMSapp" client = boto3.client("sns") topic_arn = "arn:aws:sns:us-east-1:025685231147:slococo" client.publish(TopicArn=topic_arn, Message=message, Subject=subject)