Topics
An SNS topic is a communication channel where a publisher can publish messages and a subscriber can get messages by subscribing to it. The SNS topic name should be unique to your AWS account. In a single AWS account, we can create up to 100,000 topics.
AWS Management Console
Go to the AWS SNS Management Console at https://console.aws.amazon.com/sns/v2/home and perform the following steps:
- Click
Topics
in the navigation pane on the left. - Click
Create new topic
:
Figure 8.1: Creating a new topic
Provide details as follows:
Topic name
: Type inaws-bootcamp
. We can add up to 256 alphanumeric characters, hyphens (-
), and underscores (_
).Display name
: Type inbootcamp
. The display name can be up to 10 characters only. The display name is used if we have an SMS subscription.
- Once the details have been provided, click
Create topic
:
Figure 8.2: Topic listing
AWS CLI
To execute the CLI script, open Command Prompt.
The following command will create an SNS topic:
aws sns create-topic --name "aws-bootcamp"
The...