Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import boto3
sns = boto3.client("sns", region_name="eu-central-1")
# CREATE TOPIC
topic_name = "ge_timeseries_data_test"
create_response = sns.create_topic(Name=topic_name)
topic_arn = create_response.get("TopicArn")
# CREATE SUBSCRIPTIONS
email_sub = sns.subscribe(
TopicArn=topic_arn, Protocol="email", Endpoint="youremail@yourdomain.com"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment