Developer
Ask a QuestionBlecon WebsiteBlecon Console
  • Learn Blecon
    • Introduction
    • Blecon Modems
      • Device Identity and Network Security
      • Modem Firmware vs Modem Library
      • Using the Modem
      • Communicating with the cloud
      • Sending data from the cloud to a device
    • Blecon Hotspots
    • Blecon Networks
      • Blecon Accounts
      • Registering devices
        • The Blecon Scanner
        • Blecon Scanner Developer Guide
      • Blecon Events
      • Cloud Integrations
  • Cloud Integrations
    • Webhook
    • AWS S3
    • AWS SQS
    • AWS EventBridge
    • Memfault
  • Getting Started Guides
    • Getting started index
    • Install the Blecon Modem Firmware
    • Set up a Blecon Hotspot
    • Use Blecon from your computer with the Blecon CLI
    • Create a Network and register a device
    • Send device requests and events to your web service
    • Use Blecon from a Development Board
    • Use the Blecon Modem from an MCU
  • Device Guides
    • KKM S5-BCN
  • Development Board Guides
    • Supported Development Boards
    • Ezurio DVK-BL54L15
    • Fanstel EV-BM15C
    • InsightSiP ISP2454-LX-EB
    • Nordic nRF52840DK
    • Nordic nRF54L15DK
    • Minew ME54BE01
    • Panasonic PAN-B511 EVB
    • Raytac AN54L15Q-DB
    • u-Blox EVK-NORA-B20
  • Modem Reference
    • Modem Firmware Releases
      • nRF54L15 DK
      • nRF52840 Dongle
      • nRF52840 DK
    • CLI Releases
    • SDK Releases
    • Modem API Reference
    • Modem Protocol Reference
      • Request Frames
      • Command Protocol
      • UART Transport
    • Guides and best practices
      • Retrieve a device's identity
  • Cloud Reference
    • Configuration API
    • Advanced event routing
  • Hotspot Reference
    • Blecon Hub
Powered by GitBook

Get Support

  • Ask a question
On this page
  • Introduction
  • Preparing your AWS account
  • Configuring the Integration
  1. Cloud Integrations

AWS SQS

Send device events to AWS SQS

PreviousAWS S3NextAWS EventBridge

Last updated 2 months ago

Introduction

(Amazon SQS) offers a secure, durable, and available hosted queue that lets you integrate and decouple distributed software systems and components.

The Blecon AWS SQS integration sends device messages to a SQS queue, from where they can be consumed by various AWS services or your own code.

Preparing your AWS account

Log into or.

Note Region

Note the region in use, which is found in the top right of the AWS Console.

Create SQS queue

Open SQS in the AWS Console, and create a new queue. Take note of the queue name and queue URL.

Create IAM Policy

Open IAM in the AWS Console, and create a policy like the below.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "AllowSendingMessagesToSQS",
            "Effect": "Allow",
            "Action": "sqs:SendMessage",
            "Resource": "arn:aws:sqs:REGION:ACCOUNT_ID:QUEUE_NAME"
        }
    ]
}

For ease of creating, select the JSON editor, paste the above, and insert your region, account ID, and queue name where indicated.

Create IAM Role

Now that we've created the policy, we can create a role, and attach the policy to it.

Navigate to the IAM service in the AWS Console and select Create Role. For Trusted Entity, choose AWS account and enter 329599652485.

Click next, then find the policy you created in the previous step, and attach it to the role.

Click next and note the below on role naming, or the integration will not work.

Ensure the role has a name that begins with the text BleconIntegrationRole

Now that the role is created, we need to get the ARN of the role.

Find the role in the list of roles, open it, and copy the ARN.

Configuring the Integration

Now you should have everything you need to configure the Blecon integration:

  • IAM Role ARN

  • Region

  • Queue URL (found on the SQS queue in the AWS console)

The namespace is your choice. Device messages must use this namespace to be routed to this integration.

Matching device events will now be stored in the SQS queue consumed or expired.

If you have questions, feel free to !

Amazon Simple Queue Service
create an AWS account
contact us
Creating a role for Blecon
Obtaining the ARN for your new role