SNS Topics

Introducción a AWS Boto en Python

Maksim Pecherskiy

Data Engineer!

SNS

SNS

Introducción a AWS Boto en Python

Understanding SNS

SNS

Introducción a AWS Boto en Python

Understanding SNS

SNS

Introducción a AWS Boto en Python

Understanding SNS

SNS

Introducción a AWS Boto en Python

Understanding SNS

SNS

Introducción a AWS Boto en Python

Understanding SNS

SNS

Introducción a AWS Boto en Python

Understanding SNS

SNS

Introducción a AWS Boto en Python

Accessing SNS

SNS

Introducción a AWS Boto en Python

SNS Dashboard

SNS Dashboard

Introducción a AWS Boto en Python

SNS Topics

SNS Topics

Introducción a AWS Boto en Python

SNS Topics

SNS Topics

Introducción a AWS Boto en Python

Creating an SNS Topic

sns = boto3.client('sns', 
                   region_name='us-east-1', 
                   aws_access_key_id=AWS_KEY_ID,                   
                   aws_secret_access_key=AWS_SECRET)
Introducción a AWS Boto en Python

Creating an SNS Topic

response = sns.create_topic(Name='city_alerts')
Introducción a AWS Boto en Python

Creating an SNS Topic

Creating an SNS topic

Introducción a AWS Boto en Python

Creating an SNS Topic

topic_arn = response['TopicArn']

Or... a shortcut

sns.create_topic(Name='city_alerts')['TopicArn']
Introducción a AWS Boto en Python

Creating an SNS Topic

Creating an SNS topic

Introducción a AWS Boto en Python

Permissions

Permissions

Introducción a AWS Boto en Python

Listing topics

response = sns.list_topics()
Introducción a AWS Boto en Python

Listing topics

Listing topics

Introducción a AWS Boto en Python

Deleting topics

sns.delete_topic(TopicArn='arn:aws:sns:us-east-1:320333787981:city_alerts')
Introducción a AWS Boto en Python

Review

SNS overview

Introducción a AWS Boto en Python

Review

Create SNS Client

sns = boto3.client('sns', 
                   region_name='us-east-1', 
                   aws_access_key_id=AWS_KEY_ID,                   
                   aws_secret_access_key=AWS_SECRET)

Create a topic

response = sns.create_topic(Name='city_alerts')
topic_arn = response['TopicArn']
Introducción a AWS Boto en Python

Review

List Topics

response = sns.list_topics()
topics = response['Topics']

Delete a topic

sns.delete_topic(TopicArn='arn:aws:sns:us-east-1:320333787981:city_alerts')
Introducción a AWS Boto en Python

Let's practice!

Introducción a AWS Boto en Python

Preparing Video For Download...