AWS Chatbot Bot Alias

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

aws_lex_bot_alias (Terraform)

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

Example Usage from GitHub

lex_bot_alias.tf#L1
resource "aws_lex_bot_alias" "order_flowers_prod" {
  bot_name    = "order_flowers_bot"
  bot_version = "1"
  description = "Production Version of the OrderFlowers Bot."
  name        = "OrderFlowersProd"
}
bot_alias.tf#L1
resource "aws_lex_bot_alias" "multi_demo_dev" {
  bot_name    = aws_lex_bot.multi_demo.name
  bot_version = aws_lex_bot.multi_demo.version
  description = "Development version of multi-demo bot"
  name        = "MultiDemoDev"
}
bot.tf#L47
resource "aws_lex_bot_alias" "order_intake_connect" {
    depends_on = [
      aws_lex_bot.order_food_bot
    ]
  bot_name    = "OrderIntake"
  bot_version = aws_lex_bot.order_food_bot.version
bot_alias.tf#L1
resource "aws_lex_bot_alias" "book_trip_dev" {
  bot_name    = aws_lex_bot.book_trip.name
  bot_version = aws_lex_bot.book_trip.version
  description = "Development version of bot to make reservations necessary for a visit to a city"
  name        = "BookTripDev"
}
2-bot_alias.tf#L1
resource "aws_lex_bot_alias" "LATIS_greetingUser_dev" {
  bot_name    = aws_lex_bot.vwt_corp_chatbot_latis_iat_one.name
  bot_version = aws_lex_bot.vwt_corp_chatbot_latis_iat_one.version
  description = "Development version of bot to make chatbot"
  name        = local.bot_name

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 Alias 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 Alias?

AWS Chatbot Bot Alias 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 Alias?

For Terraform, the pjangam/SongsSearch, vlindhol/multi-demo and tpwidman-vf/restaurant-connect 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.