Part 6 - Bonus Content2: Creating a Simple Notification Service Topic

Amazon Simple Notification Service (Amazon SNS) coordinates and manages the delivery or sending of messages to subscribing endpoints or clients. In Amazon SNS, there are two types of clients: publishers and subscribers. These are also referred to as producers and consumers. Publishers communicate asynchronously with subscribers by producing and sending a message to a topic, which is a logical access point and communication channel. Subscribers (i.e., web servers, email addresses, Amazon SQS queues, AWS Lambda functions) consume or receive the message or notification over one of the supported protocols (i.e., Amazon SQS, HTTP/S, email, SMS, Lambda) when they are subscribed to the topic.

6.1 Create and Subscribe to an SNS Topic

To create and subscribe to an SNS topic:

1. Navigate to the SNS console at https://console.aws.amazon.com/sns/.

2. Choose Create topic.

3. In the Create new topic window:

a. In the Topic name field, enter AdminAlert. b. In the Display name field, enter AdminAlert. c. Choose Create topic.

4. On the Topic details: AdminAlert page, choose Create subscription.

5. In the Create subscription window:

a. Select Email from the Protocol list. b. Enter your email address in the Endpoint field. c. Choose Create subscription.

7. Refresh the page after confirming your subscription to view the populated Subscription ARN.

You can now use this SNS topic to send notifications to your Administrator user.

#8 Systems Manager Distributor Bonus….

##8.1 If you would like to learn about AWS Systems Manager Distributor, follow the blog post steps at https://aws.amazon.com/blogs/mt/packaging-to-distribution-using-aws-systems-manager-distributor-to-deploy-datadog/

1. You can find the Windows datadog installer at https://thorium-systemsmanager-lab.s3.amazonaws.com/dd/datadog-agent-6-latest.amd64.msi

2. Additionally, the Linux datadog installer at https://thorium-systemsmanager-lab.s3.amazonaws.com/dd/datadog-agent-6.9.0-1.x86_64.rpm

3. Or if you want to not worry about creating the install/uninstall scripts, you can just reference this S3 location in the distributor setup https://thorium-systemsmanager-lab.s3.amazonaws.com/ddinstall/

One other thing, you will need to update your SSM Agent to have the distributor work, check out the Run Command document “AWS-UpdateSSMAgent”

Thank you for using this lab.