Skip to content

Commit e06b3e6

Browse files
Khuzaima-ShakeelKhuzaima-Shakeel
authored andcommitted
resolve review comments
1 parent 98e627a commit e06b3e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ variable "create_vpc" {
1414

1515
validation {
1616
condition = !(var.create_vpc == false && var.create_subnets == true)
17-
error_message = "If create_vpc is false, then create_subnets must also be false. You cannot create subnets without first creating a VPC."
17+
error_message = "You cannot create subnets without creating a VPC. Hence if 'create_vpc' is false, then 'create_subnets' can not be true."
1818
}
1919
}
2020

@@ -409,7 +409,7 @@ variable "existing_subnets" {
409409
(var.create_subnets && length(var.existing_subnets) == 0) ||
410410
(!var.create_subnets && length(var.existing_subnets) > 0)
411411
)
412-
error_message = "You must either set 'create_subnets' to true and not provide 'existing_subnets', or set it to false and provide a non-empty list of 'existing_subnets'."
412+
error_message = "You must either set 'create_subnets' to true and leave 'existing_subnets' empty, or set 'create_subnets' to false and provide a non-empty list for 'existing_subnets'."
413413
}
414414
}
415415

0 commit comments

Comments
 (0)