DPalharini
DPalharini

Reputation: 513

Problem receiving join requests and connection status from LoraWAN gateway inside AWS IOT Core LPWAN

I'm using AWS IOT Core to receive LoraWAN packets with a RAK7289 LoraWAN gateway.

I was able to configure the gateway, the device, the device profile and the device destination through an MQTT topic and I'm receiving messages from the device.

But when I tried to configure the IAM policy to allow the join requests and connection status to pass over MQTT, AWS says that no permissions are granted:

This policy does not grant any permissions. To grant access, policies must have an action that has an applicable resource or condition.

Even though I'm using the policy indicated by AWS:

enter image description here

Has anyone solved this type of issue?

Thanks in advance.

Upvotes: 0

Views: 99

Answers (1)

DPalharini
DPalharini

Reputation: 513

After reaching for AWS Support, they sent a fixed the policy, the correct one is:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "iot:Receive",
                "iot:Subscribe"
            ],
            "Resource": [
                "arn:aws:iot:us-east-1:<account>:topicfilter/$aws/iotwireless/events/join/*",
                "arn:aws:iot:us-east-1:<account>:topicfilter/$aws/iotwireless/events/connection_status/*",
                "arn:aws:iot:us-east-1:<account>:topicfilter/$aws/iotwireless/events/device_registration_state/*",
                "arn:aws:iot:us-east-1:<account>:topicfilter/$aws/iotwireless/events/proximity/*",
                "arn:aws:iot:us-east-1:<account>:topicfilter/$aws/iotwireless/events/message_delivery_status/*"
            ]
        }
    ]
}

The AWS documentation is still showing the wrong policy, but according to them, it will be fixed.

Upvotes: 1

Related Questions