def publish_to_sns()

in lambda-sns-notify/lambda_function.py [0:0]


def publish_to_sns(message, subject, topic_arn):
    client = connect_to_aws("us-east-1", "sns")

    response = client.publish(
        TopicArn=topic_arn,
        Message=message,
        Subject=subject,
    )
    print(response)