2015-06-09 17:02:19 +02:00
|
|
|
variable "identifier" {
|
2016-09-22 13:49:09 +02:00
|
|
|
default = "mydb-rds"
|
2015-08-31 10:19:02 +02:00
|
|
|
description = "Identifier for your DB"
|
2015-06-09 17:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "storage" {
|
2016-09-22 13:49:09 +02:00
|
|
|
default = "10"
|
2015-08-31 10:19:02 +02:00
|
|
|
description = "Storage size in GB"
|
2015-06-09 17:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "engine" {
|
2016-09-22 13:49:09 +02:00
|
|
|
default = "postgres"
|
2015-08-31 10:19:02 +02:00
|
|
|
description = "Engine type, example values mysql, postgres"
|
2015-06-09 17:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "engine_version" {
|
2015-08-31 10:19:02 +02:00
|
|
|
description = "Engine version"
|
2016-09-22 13:49:09 +02:00
|
|
|
|
2015-08-31 10:19:02 +02:00
|
|
|
default = {
|
2016-09-22 13:49:09 +02:00
|
|
|
mysql = "5.6.22"
|
2015-08-31 10:19:02 +02:00
|
|
|
postgres = "9.4.1"
|
|
|
|
}
|
2015-06-09 17:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "instance_class" {
|
2016-09-22 13:49:09 +02:00
|
|
|
default = "db.t2.micro"
|
2015-08-31 10:19:02 +02:00
|
|
|
description = "Instance class"
|
2015-06-09 17:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "db_name" {
|
2016-09-22 13:49:09 +02:00
|
|
|
default = "mydb"
|
2015-08-31 10:19:02 +02:00
|
|
|
description = "db name"
|
2015-06-09 17:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "username" {
|
2016-09-22 13:49:09 +02:00
|
|
|
default = "myuser"
|
2015-08-31 10:19:02 +02:00
|
|
|
description = "User name"
|
2015-06-09 17:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "password" {
|
2015-08-31 10:19:02 +02:00
|
|
|
description = "password, provide through your ENV variables"
|
2015-06-09 17:02:19 +02:00
|
|
|
}
|