-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathvariables.tf
42 lines (42 loc) · 1.77 KB
/
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
40
41
42
# Creds and default location
variable "credentials" { default = "your_account.json" } // Change with you service account .json file
variable "project" { default = "your_project_id" } // Your GCP Project ID
variable "region" { default = "northamerica-northeast1" }
variable "zone" { default = "northamerica-northeast1-a" }
#
# Instance Template
variable "prefix" { default = "apache-" }
variable "desc" { default = "This template is used to create Apache server instances." }
variable "tags" { default = "webserver" }
variable "desc_inst" { default = "Apache Web server instance" }
variable "machine_type" { default = "n1-standard-1" }
variable "source_image" { default = "apache" } //This is the family tag used when building the Golden Image with Packer.
variable "network" { default = "default" }
#
# Managed Instace Group
variable "rmig_name" { default = "apache-rmig" }
variable "base_instance_name" { default = "apache" }
variable "target_size" { default = "3" }
#
# Healthcheck
variable "hc_name" { default = "apache-healthcheck" }
variable "hc_port" { default = "80" }
#
# Backend
variable "be_name" { default = "http-backend" }
variable "be_protocol" { default = "HTTP" }
variable "be_port_name" { default = "http" }
variable "be_timeout" { default = "10" }
variable "be_session_affinity" { default = "NONE" }
#
# RMIG Autoscaler
variable "rmig_as_name" { default = "rmig-as" }
#
# Global Forwarding Rule
variable "gfr_name" { default = "website-forwarding-rule" }
variable "gfr_portrange" { default = "80" }
variable "thp_name" { default = "http-proxy" }
variable "urlmap_name" { default = "http-lb-url-map" }
#
# Firewall Rules
variable "fwr_name" { default = "allow-http-https" }