-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
39 lines (35 loc) · 920 Bytes
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
variable "aws_region" {
description = "For Region"
type = string
}
variable "vpc_tags" {
description = "Tags for VPC"
type = map(any)
}
variable "db_name" {
description = "Name of DB"
type = string
sensitive = true
validation {
condition = can(regex("^[a-zA-Z0-9\\-\\_]+$", var.db_name))
error_message = "DB Name must not be empty and can contain letters, numbers, underscores, and dashes."
}
}
variable "db_user_name" {
description = "RDS DB User"
type = string
sensitive = true
validation {
condition = length(var.db_user_name) > 5
error_message = "DB UserName must not be empty."
}
}
variable "db_user_password" {
description = "RDS DB User Password"
type = string
sensitive = true
validation {
condition = length(var.db_user_password) > 8
error_message = "DB User Password must not be empty."
}
}