mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
TF: Check input variables also for AWS
This commit is contained in:
parent
b0ea90c65b
commit
de3d7c7f4f
1 changed files with 14 additions and 4 deletions
|
@ -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."
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue