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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ