Closed jenia closed 3 months ago
The easiest thing to do, if you have deployed it via CloudFormation, is hit your deployed web app and check the network traffic. It will have a lex-web-ui-loader-config.json
file and you can just copy the contents and paste it into your local config file for development.
To answer your questions directly
thank you kindly!
thank you!
Hello.
I'm running the chatbot UI component in an HTML page by following the readme in
src/README.md
:But I get the message in the web console:
Before hand I successfully created the Cognito identity pool using the Cloudformation template and copied
User pool ID
from AWS Cognito interface but I still receive the error above.And here is my
lex-web-ui-loader-config.json
config:My questions are as follows:
User pool ID
in AWS Cognito interface.connect
object above? Do I need to create an API gateway for this minimal example? Or the provided sample web app can call Lex without an API Gateway but simply call it directly? I looks to me that the provided API Gateway cloudformation script is designed with the idea that you'll be hosting this code on an S3 bucket rather than running a simple example locally. I prefer to only run a simple example locally rather than hosting an entire website on S3 for now.