Skip to content

Instantly share code, notes, and snippets.

@mafiaguy
Created November 5, 2021 04:19
Show Gist options
  • Save mafiaguy/fc8fe340c7e2179a051b8e3ec47a2916 to your computer and use it in GitHub Desktop.
Save mafiaguy/fc8fe340c7e2179a051b8e3ec47a2916 to your computer and use it in GitHub Desktop.
Send an email using sns lambda
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