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.

feita há 2 anos218 visualizações
1 Resposta
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
ESPECIALISTA
Greg_B
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas