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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠