AWS Chatbot Bot

This page shows how to write Terraform for Chatbot Bot and write them securely.

aws_lex_bot (Terraform)

The Bot in Chatbot can be configured in Terraform with the resource name aws_lex_bot. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

lex.tf#L3
resource "aws_lex_bot" "bge_lex_help_bot" {
    name                            = "bge_lex_help_bot"
    locale                          = "en-GB"
    create_version                  = "true"
    child_directed                  = false
    enable_model_improvements       = true
bot.tf#L1
resource "aws_lex_bot" "order_food_bot" {
    depends_on = [
      aws_lex_intent.get_food_order_intent
    ]
    child_directed                  = false
    create_version                  = false
lex_bot.tf#L1
resource "aws_lex_bot" "order_flowers_bot" {
  abort_statement {
    message {
      content      = "Sorry, I am not able to assist at this time"
      content_type = "PlainText"
    }
lex-bot.tf#L1
resource "aws_lex_bot" "medical_help" {

  abort_statement {
    message {
      content      = "Sorry, I am not able to assist at this timez"
      content_type = "PlainText"
bot.tf#L1
resource "aws_lex_bot" "multi_demo" {
  abort_statement {
    message {
      content_type = "PlainText"
      content      = "Sorry, I am not able to assist at this time"
    }

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides an Amazon Lex Bot resource. For more information see Amazon Lex: How It Works

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS Chatbot Bot?

AWS Chatbot Bot is a resource for Chatbot of Amazon Web Service. Settings can be wrote in Terraform.

Where can I find the example code for the AWS Chatbot Bot?

For Terraform, the DarekB-repos/example-lexbot, tpwidman-vf/restaurant-connect and pjangam/SongsSearch source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.