Created
November 5, 2021 04:19
-
-
Save mafiaguy/fc8fe340c7e2179a051b8e3ec47a2916 to your computer and use it in GitHub Desktop.
Send an email using sns lambda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
sns_arn= 'arn:sns:region:key' | |
def send_sns(): | |
sns = boto3.client('sns') | |
response = sns.publish( | |
TargetArn=sns_arn, | |
Subject="test email", | |
Message = 'This is a sample mail using SNS' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment