Skip to content

Commit

Permalink
Merge pull request #1946 from techmatters/bg-fix-issue-with-e2e
Browse files Browse the repository at this point in the history
ch: refactor hack to use regex in terraform
  • Loading branch information
acedeywin authored Dec 18, 2023
2 parents f0c7fb1 + a496f9f commit 681ffdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twilio-iac/terraform-modules/lex/v1/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ resource "aws_lex_slot_type" "this" {
# that doesn’t allow numbers or certain special characters. Unfortunately, this restriction is imposed by AWS,
# and I cannot directly override it. AWS Lex has specific naming requirements for intents, slots, and bot names
# and Terraform enforces these requirements when you create resources.
# So a work-around for the e2e account was to replace the "2" with the letter ""
# So a work-around for the e2e account was to replace the "[0-9]" with the no space ""

name = replace("${local.name_prefix}_${each.key}", "2", "")
name = replace("${local.name_prefix}_${each.key}", "/[0-9]/", "")
description = each.value.description
value_selection_strategy = each.value.value_selection_strategy

Expand Down

0 comments on commit 681ffdf

Please sign in to comment.