TF: Check input variables also for AWS

This commit is contained in:
Sebastian Haderecker 2021-04-15 16:22:55 +02:00
parent b0ea90c65b
commit de3d7c7f4f

View file

@ -55,7 +55,7 @@ variable "ec2_ami" {
}
}
# cloud-init configuration
## cloud-init configuration ##
variable "timezone" {
default = "UTC"
}
@ -63,9 +63,14 @@ variable "timezone" {
variable "linux_password" {
#default = "LiNuXuSeRPaSs#"
description = "Set a password for the default user"
validation {
condition = length(var.linux_password) > 0
error_message = "Please specify a password for the default user."
}
}
# These will go in the generated tpot.conf file
## These will go in the generated tpot.conf file ##
variable "tpot_flavor" {
default = "STANDARD"
description = "Specify your tpot flavor [STANDARD, SENSOR, INDUSTRIAL, COLLECTOR, NEXTGEN, MEDICAL]"
@ -79,4 +84,9 @@ variable "web_user" {
variable "web_password" {
#default = "w3b$ecret"
description = "Set a password for the web user"
validation {
condition = length(var.web_password) > 0
error_message = "Please specify a password for the web user."
}
}