Skip to content

Instantly share code, notes, and snippets.

@OksanaH
Created January 29, 2022 15:26
Show Gist options
  • Save OksanaH/55e72beb980aa4d529debdc10f4447c3 to your computer and use it in GitHub Desktop.
Save OksanaH/55e72beb980aa4d529debdc10f4447c3 to your computer and use it in GitHub Desktop.
lambda.py
def send_alert(subject, message):
sns.publish(
TargetArn=os.environ['sns_topic_arn'],
Subject=subject,
Message=message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment