CS4296 group 8
- Import Chatbot
- Compress OnlineShopChatbot Directory as OnlineShopChatbot.zip
- Login to AWS console with a valid account
- Navigate to Services and search for Amazon Lex
- Click get started
- Under the bots section, click Action, Import
- Input file section:
- Bot name: OnlineShopChatbot
- Input file: OnlineShopChatbot.zip
- Password: N/A
- IAM permission section:
- Runtime role: Create a role with basic Amazon Lex permissions.
- Children's Online Privacy Protection Act (COPPA)
- Is use of your bot subject to the Children's Online Privacy Protection Act (COPPA)? No
- Idle session timeout
- Session timeout: 5 minute(s)
- Advanced settings - optional: N/A
- Navigate to the Bots section, imported bot status should be Available.
- Create orders table
- Login to AWS console with a valid account
- Navigate to Services and search for DynamoDB
- Under Create Resources, Create table
- Table details
- Table name: Orders
- Partition key: OrderID with type String
- Create table, the status should be Active
- Import Lambda function
- Login to AWS console with a valid account
- Navigate to Services and search for Lambda
- Under Functions, Create function
- Author from scratch, since we are not authorized to perform serverless app repository
- Basic information
- Function name: productinformation
- Runtime: Python 3.9
- Architecture: x86_64
- Permissions -> Change default execution role: LabRole
- Code source
- Copy / Paste lamda functions within AWSLambdaFunctions directory or compress lambda functions as zip and upload as code source
- Press Deploy
(AWS console) Amazon Lex -> Bots -> OnlineShopChatbot -> Aliases -> Alias item -> Languages -> English -> Lambda function :
Source : productinformation
Lambda function version or alias : $LATEST