mirror of
https://github.com/ghndrx/terraform-gke-cluster.git
synced 2026-02-10 06:55:01 +00:00
Refactor: google_container_cluster
- Refactor provider block to use variable for project and region - Update node_config to use variable for machine_type - Add google_container_cluster resource for my-cluster - set variables for project,region,machine_type,username and password - Add variables.tf file for setting project,region,machine_type,username and password dynamically
This commit is contained in:
25
terraform-gke/variables.tf
Normal file
25
terraform-gke/variables.tf
Normal file
@@ -0,0 +1,25 @@
|
||||
# You will need to define those variables in your variables.tf, and use terraform apply -var 'google_region=us-central1' -var 'machine_type=n1-standard-1' -var 'username=admin' -var 'password=password' to set them when you run terraform apply.
|
||||
|
||||
variable "my-project-id" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "my-cluster" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "google_region" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "machine_type" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "username" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "password" {
|
||||
type = string
|
||||
}
|
||||
Reference in New Issue
Block a user