Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Integrating TEKTELIC KONA Gateways with AWS IoT Core for LoRaWAN

Description

This guide describes how to connect TEKTELIC KONA LoRaWAN® gateways to AWS IoT Core for LoRaWAN using the LoRa Basics™ Station protocol. The procedure uses the KONA Link web interface and requires no command-line access to the gateway.

Before you begin, ensure your gateway firmware supports LoRa Basics™ Station (BSP v7.2.x or later).


Requirements

  • An AWS account
  • A TEKTELIC KONA gateway with the required BSP version and LoRa Basics™ Station installed
  • Internet access for the gateway

Step 1: Create IAM Policy and Role for AWS IoT Core

The IAM Role allows the AWS Configuration and Update Server (CUPS) to manage gateway credentials. This step only needs to be done once per AWS account.

  1. Go to the AWS IAM ConsolePoliciesCreate policy.

AWS IoT IAM Create Policy

  1. Select the JSON tab and replace the content with the following policy:

AWS IoT IAM Create Policy Select JSON tab

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "IoTWirelessGatewayCertManager",
      "Effect": "Allow",
      "Action": [
        "iot:CreateKeysAndCertificate",
        "iot:DescribeCertificate",
        "iot:ListCertificates",
        "iot:RegisterCertificate"
      ],
      "Resource": "*"
    }
  ]
}

AWS IoT IAM Create Policy JSON

  1. Choose Next, name the policy AWSIoTWirelessGatewayCertManager, and click Create policy.

AWS IoT IAM Create Policy enter Policy name

  1. Go to RolesCreate roleAWS accountThis accountNext.

AWS IoT IAM Create Roles

AWS IoT IAM Create Roles Next

  • Attach the policy AWSIoTWirelessGatewayCertManager.

AWS IoT IAM Attach Policy

  • Name the role IoTWirelessGatewayCertManagerRole.
  • Select Create role.

AWS IoT IAM Role Name

AWS IoT IAM Create Role2

  1. Edit the new role’s Trust relationship and update it as follows:

    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Principal": {
            "Service": "iotwireless.amazonaws.com"
          },
          "Action": "sts:AssumeRole"
        }
      ]
    }
    

AWS IoT IAM Edit Trust policy

  1. Save the trust policy by choosing Update policy.

Step 2: Add the Gateway to AWS IoT

  1. Open the AWS IoT Core for LoRaWAN ConsoleLPWAN devices → Gateways → Add gateway.

AWS IoT IAM Add Gateway

  1. Enter the following information:

    • Gateway EUI – printed on the gateway label.
    • Frequency band – select the appropriate LoRaWAN region (e.g., US915, EU868).
    • Optionally, enter a name for the gateway.

AWS IoT IAM Add Gateway information

  1. Click Add gateway.

AWS IoT IAM Add Gateway confirm

  1. On the Configure your gateway page:

    • Choose Create certificate.
    • Download the certificate (xxxx.cert.pem) and private key (xxxx.private.key).

AWS IoT IAM Add Gateway create certificate

AWS IoT IAM Add Gateway download certificate

  1. Rename and duplicate the files as follows:

    cups.crt     ← xxxx.cert.pem
    cups.key     ← xxxx.private.key
    
  2. Under Provisioning credentials, choose Download server trust certificates.

    • Keep cups.trust as is.

AWS IoT IAM Add Gateway download Provisioning Credentials

  1. Copy the endpoint URLs:

AWS IoT IAM Add Gateway copy endpoint URL

  • Create a text file named cups.uri containing your CUPS endpoint (e.g.):

    https://EXAMPLE.cups.us-east-1.amazonaws.com:443
    
  1. You should now have the following four files ready:

    cups.uri
    cups.trust
    cups.crt
    cups.key
    
  2. Select the role IoTWirelessGatewayCertManagerRole and click Submit to complete gateway registration.

AWS IoT IAM Add Gateway Select Role and Submit


Once the AWS side setup is complete, configure the gateway through KONA Link.

  1. Log in to KONA Link using your gateway’s hostname or IP address:
http://kona-<model>-<last 6 digits of ID>.local/

Kona Link launched using HostURL

http://<GW IP address>/
  1. From the main menu, select Setup Wizards → LoRa Basics Station Setup.

Kona Link setup wizards LoRa basic station

  1. When prompted, ensure that the gateway is not connected to KONA Core. Click Next to continue.

Kona Link LoRa basic station disconnected from lns

  1. Select the frequency subband that matches your AWS region (default is 2).

  2. Upload all four files prepared earlier:

    cups.uri
    cups.trust
    cups.crt
    cups.key
    

Kona Link LoRa basic station upload files

  1. Click Next, then Done.

  2. Reboot the gateway when prompted.

Step 4: Verify the Connection

After the gateway restarts:

  1. In KONA Link, confirm that the Basics Station status shows Connected.
  2. In the AWS IoT Console, go to: Manage → LPWAN devices → Gateways
  3. Verify that the Last uplink received field shows a recent timestamp.

AWS IoT IAM Add Gateway Last uplink received

If data is flowing, your KONA gateway is successfully connected to AWS IoT Core for LoRaWAN.


Summary

You have now integrated your TEKTELIC KONA gateway with AWS IoT Core for LoRaWAN using the LoRa Basics™ Station protocol and the KONA Link web interface. All security credentials are managed using AWS IAM and CUPS/LNS trust files, providing a secure and reliable connection between your gateway and AWS IoT Core.