Provisioning a Wireless gateway with LoRaWAN control plane API in shell script

0

I have direct calls to the LoRaWAN Control Plane API: https://api.iotwireless.us-east-1.amazonaws.com/wireless-gateways working well in Postman using the AWS Signature auth method.

What I'm trying to understand is if it's possible to use these APIs in a shell script from within a container running on the Gateway itself. Of course I know I can hit APIs in a .sh but I'm curious about two things:

  1. How would I implement the AWS Signature method in a shell script? Or is it possible to use standard (eg. Bearer Token) auth methods?

  2. AWS seems to heavily prefer using the AWS CLI, Boto3 or SDKs to interact with these endpoints, so what would I be risking if making direct calls.

已提问 2 年前218 查看次数
1 回答
0

Hi. If you use the AWS CLI or SDKs, you won't need to answer question 1). The CLI or SDKs should help you deliver solutions more quickly. For the most part, the CLI and SDKs are thin wrappers around the APIs.

If you didn't already find it (and I know this question is a few months old), this repository may be of interest: https://github.com/aws-samples/aws-iot-greengrass-component-lorawan-provisioning

Boto3 has been used for the provisioning: https://github.com/aws-samples/aws-iot-greengrass-component-lorawan-provisioning/blob/master/artifacts/main.py

profile pictureAWS
专家
Greg_B
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则