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 Resposta
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
respondido há um ano

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