Create an Amazon Lex V2 chatbot with an IAM role, English locale, and a sample intent, then build the bot locale.
https://docs.aws.amazon.com/lexv2/latest/dg/getting-started.html
- ID: lex/getting-started
- Level: intermediate
- Core actions:
lexv2-models:CreateBot,lexv2-models:CreateIntent,lexv2-models:CreateBotLocale,lexv2-models:BuildBotLocale
- Create an IAM role for the bot
- Create a bot
- Create an English locale
- Create an OrderPizza intent with sample utterances
- Build the bot locale
- Describe the bot
| Resource | Type |
|---|---|
tut-bot-<random> |
Lex V2 bot |
lex-tut-role-<random> |
IAM role (with Polly policy) |
~40 seconds
No charge for bot creation. Lex charges per text or speech request when the bot processes conversations. This tutorial does not send conversation requests.
| Field | Value |
|---|---|
| Date | 2026-04-14 |
| Script lines | 106 |
| Exit code | 0 |
| Runtime | 40s |
| Steps | 6 |
| Issues | Fixed bot/locale wait timing |
| Version | v1 |