From baf473c015f2e31061695239434c7584b53f94a1 Mon Sep 17 00:00:00 2001 From: Vladimir Samoylov Date: Fri, 15 Jan 2021 03:04:47 +0700 Subject: [PATCH] update prefix validation --- variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variables.tf b/variables.tf index bc98a97..e53b755 100644 --- a/variables.tf +++ b/variables.tf @@ -2,8 +2,8 @@ variable "prefix" { type = string default = "default" validation { - condition = !contains(["aws", "lambda-console", "elasticbeanstalk"], var.prefix) - error_message = "Impossible to use `aws`,`lambda-console`,`elasticbeanstalk` here." + condition = !contains(["aws", "lambda-console", "elasticbeanstalk", "AWS"], var.prefix) + error_message = "Impossible to use `aws`,`lambda-console`,`elasticbeanstalk`, `AWS` here." } }