Prerequisites - AWS IoT Events

Prerequisites

If you don't have an AWS account, create one.

  1. Open https://portal.aws.amazon.com/billing/signup.

  2. Follow the online instructions.

    Part of the sign-up procedure involves receiving a phone call and entering a verification code on the phone keypad.

    When you sign up for an AWS account, an AWS account root user is created. The root user has access to all AWS services and resources in the account. As a security best practice, assign administrative access to an administrative user, and use only the root user to perform tasks that require root user access.

  3. Create two Amazon Simple Notification Service (Amazon SNS) topics.

    This tutorial (and the corresponding example) assume that you created two Amazon SNS topics. The ARNs of these topics are shown as: arn:aws:sns:us-east-1:123456789012:underPressureAction and arn:aws:sns:us-east-1:123456789012:pressureClearedAction. Replace these values with the ARNs of Amazon SNS topics that you create. For more information, see the Amazon Simple Notification Service Developer Guide.

    As an alternative to publishing alerts to Amazon SNS topics, you can have the detectors send MQTT messages with a topic that you specify. With this option, you can verify that your detector model is creating instances and that those instances are sending alerts by using the AWS IoT Core console to subscribe to and monitor messages sent to those MQTT topics. You can also define the MQTT topic name dynamically at runtime by using an input or variable created in the detector model.

  4. Choose an AWS Region that supports AWS IoT Events. For more information, see AWS IoT Events in the AWS General Reference. For help, see Working with the AWS Management Console in the Getting Started with the AWS Management Console.