SNS Topics

Einführung in AWS Boto mit Python

Maksim Pecherskiy

Data Engineer!

SNS

SNS

Einführung in AWS Boto mit Python

Understanding SNS

SNS

Einführung in AWS Boto mit Python

Understanding SNS

SNS

Einführung in AWS Boto mit Python

Understanding SNS

SNS

Einführung in AWS Boto mit Python

Understanding SNS

SNS

Einführung in AWS Boto mit Python

Understanding SNS

SNS

Einführung in AWS Boto mit Python

Understanding SNS

SNS

Einführung in AWS Boto mit Python

Accessing SNS

SNS

Einführung in AWS Boto mit Python

SNS Dashboard

SNS Dashboard

Einführung in AWS Boto mit Python

SNS Topics

SNS Topics

Einführung in AWS Boto mit Python

SNS Topics

SNS Topics

Einführung in AWS Boto mit 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)
Einführung in AWS Boto mit Python

Creating an SNS Topic

response = sns.create_topic(Name='city_alerts')
Einführung in AWS Boto mit Python

Creating an SNS Topic

Creating an SNS topic

Einführung in AWS Boto mit Python

Creating an SNS Topic

topic_arn = response['TopicArn']

Or... a shortcut

sns.create_topic(Name='city_alerts')['TopicArn']
Einführung in AWS Boto mit Python

Creating an SNS Topic

Creating an SNS topic

Einführung in AWS Boto mit Python

Permissions

Permissions

Einführung in AWS Boto mit Python

Listing topics

response = sns.list_topics()
Einführung in AWS Boto mit Python

Listing topics

Listing topics

Einführung in AWS Boto mit Python

Deleting topics

sns.delete_topic(TopicArn='arn:aws:sns:us-east-1:320333787981:city_alerts')
Einführung in AWS Boto mit Python

Review

SNS overview

Einführung in AWS Boto mit 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']
Einführung in AWS Boto mit 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')
Einführung in AWS Boto mit Python

Let's practice!

Einführung in AWS Boto mit Python

Preparing Video For Download...