By using AWS re:Post, you agree to the Terms of Use

Which AWS service to use for receiving REST messages from IOT device


if an IOT device sends REST messages (in JSON format) to an endpoint using HTTPS. Which particular AWS service should I use to create and test the endpoint. Also, what kind of security and authentication can I implement?

Are there any tutorials available to implement this endpoint on AWS?

2 Answers

AWS IoT Core allows for messages to be published over MQTT, Websockets, and HTTP. This would allow your devices to publish to the managed endpoint meaning you wouldn't have to configure any servers or services, you could just get started with using it right away. See the following for reference:

From there, testing to see if the message comes through is made very simple; the AWS IoT Console contains a test console that allows you to view incoming messages. This is very helpful when building and testing IoT applications. See the following, short video that demonstrates how to use the test console:

profile picture
answered 19 days ago

Take a look at AWS API Gateway -

Is your backend already implemented in AWS as an HTTPS end-point. If that's the case, API Gateway can use that backend as its integration.

If you need to implement the backend application to process the REST API calls coming from your IoT devices, you can use AWS Lambda functions ( API Gateway can also directly integrate with a number of other AWS services directly as well

You can find tutorials for API Gateway here -

For authentication in API Gateway, there are multiple options available. Those are discussed at a high level -

Most commonly used mechanisms are

  1. Lambda Authorizers -
  2. Cognito User Pools -
  3. AWS IAM -
  4. Cognito Identity Pools -

You can use this workshop - if you want to get a good handle on authentication with AWS API Gateway

answered 20 days ago
  • Hi Indranil,

    Really appreciate your detailed response. Currently, I don't have any integrations on AWS. I'm pretty much new to AWS and Basically I'm gathering an information about the following situation:

    If an IOT device sends REST messages to an endpoint using HTTPS. In order to confirm that the messages are being properly sent or can be received, how would I set a testing endpoint in AWS?

  • API Gateway does not have to use Lambdas or AWS Services or HTTP(S) endpoints running inside AWS as the integration. API Gateway can invoke any public HTTP(S) endpoint even if it is not running inside AWS.

    Having said that, if your backend service is running outside of AWS and you just want to set up a mock inside AWS for testing purposes, you can use a mock integration to generate a hard-coded response that matches your response from the actual backend but with dummy values -

  • You can export your API swagger definition from your actual backend service and import the swagger into API Gateway to create your API definitions in API Gateway -

    You can then swap the backends with mock implementations using the AWS API Gateway console

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions