Search code examples
amazon-web-servicesbotsaws-clichatbotamazon-lex

Where to find Endpoint in creating aws-cli bots without using amazon-lex?


I'm trying to create a chatbot using aws-cli .Going through the Steps in Documentation in https://docs.aws.amazon.com/lex/latest/dg/gs-create-flower-types.html I couldn't understand what endpoint did it mean in the documentation as shown in the syntax.

  aws lex-models put-slot-type \
    --region region \
    --endpoint endpoint \
    --name FlowerTypes \
    --cli-input-json file://FlowerTypes.json

What is the endpoint in the above syntax?


Solution

  • You can find the list of endpoints for Lex at this link

    For your current case, https://models.lex.us-east-1.amazonaws.com/ will work as endpoint, given that your region is us-east-1.

    Endpoints Lex Screenshot

    Below code will work if you are using Windows machine:

    aws lex-models put-slot-type ^
        --region us-east-1 ^
        --endpoint https://models.lex.us-east-1.amazonaws.com/ ^
        --name FlowerTypes ^
        --cli-input-json file://FlowerTypes.json
    

    Keep the input json file in the same folder where you have opened the CLI.