1
0
mirror of synced 2025-12-30 03:00:12 -05:00
Files
terraform-google-sql/examples/cloud-sql-mysql/variables.tf
2019-02-05 17:44:24 +02:00

47 lines
1.4 KiB
HCL

# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# These variables are expected to be passed in by the operator
# ---------------------------------------------------------------------------------------------------------------------
variable "project" {
description = "The project ID to host the database in."
}
variable "region" {
description = "The region to host the database in."
}
# Note, after a name is used, it cannot be reused for up to one week.
variable "name" {
description = "The name of the database instance. Use lowercase letters, numbers, and hyphens. Start with a letter."
}
variable "master_username" {
description = "The username for the master user."
}
variable "master_password" {
description = "The password for the master user."
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# Generally, these values won't need to be changed.
# ---------------------------------------------------------------------------------------------------------------------
variable "publicly_accessible" {
default = "true"
}
variable "mysql_version" {
description = "The engine version of the database, e.g. `MYSQL_5_6` or `MYSQL_5_7`."
default = "MYSQL_5_7"
}
variable "machine_type" {
default = "db-f1-micro"
}
variable "db_name" {
default = "default"
}