Error while creating custom authorizer in AWS IoT

0

I am using AWS CLI version:aws-cli/2.9.17 Python/3.9.11 Windows/10 exe/AMD64 prompt/off

Openssl version: OpenSSL 1.1.1s 1 Nov 2022.

I am trying to send http post request to aws IoT using Postman. Create Authorizer in IoT core with the following command: aws iot create-authorizer
--authorizer-name "my-new-authorizer"
--token-key-name "tokenKeyName"
--status ACTIVE
--no-signing-disabled
--authorizer-function-arn "arn:aws:lambda:Region:57EXAMPLE833:function:custom-auth-function"
--token-signing-public-keys FirstKey="-----PUBLIC KEY----"

I am getting the following error: aws: error: the following arguments are required: --authorizer-name, --authorizer-function-arn Kindly help

1 個回答
0

The error message is indicating that the required arguments "--authorizer-name" and "--authorizer-function-arn" are missing in your command. Ensure that you have specified these arguments and try again:

aws iot create-authorizer
--authorizer-name "my-new-authorizer"
--token-key-name "tokenKeyName"
--status ACTIVE
--no-signing-disabled
--authorizer-function-arn "arn:aws:lambda:Region:57EXAMPLE833:function:custom-auth-function"
--token-signing-public-keys FirstKey="-----PUBLIC KEY----"
profile picture
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南