1
0
mirror of synced 2025-12-29 18:00:10 -05:00
Files
terraform-google-sql/examples/cloud-sql-mysql/variables.tf
2019-02-05 19:35:28 +02:00

48 lines
1.8 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.
# ---------------------------------------------------------------------------------------------------------------------
# In nearly all cases, databases should NOT be publicly accessible, however if you're migrating from a PAAS provider like Heroku to GCP, this needs to remain open to the internet.
variable "enable_public_internet_access" {
description = "WARNING: - In nearly all cases a database should NOT be publicly accessible. Only set this to true if you want the database open to the internet."
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"
}