bsmsapp/terraform/resources/lambda/lambdaSNS/lambda_handler.py

11 lines
289 B
Python

import json
import boto3
def main(event, context):
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)