compute-forwarding-rule

dcos-terraform/compute-forwarding-rule/gcp

Terraform Module HCL GCP
Install
module "compute-forwarding-rule" {
source = "dcos-terraform/compute-forwarding-rule/gcp"
version = "0.3.1"
}
plain text: /constructs/tfmod-dcos-terraform-compute-forwarding-rule-gcp/install.txt
⭐ Source on GitHub 📦 Registry page
README

GCP Forwarding Rule ============ This module creates an GCP forwarding rule. By default it creats two rules for port 80 and port 443. These could be overwritten by setting rules. With additional_rules you can specify rules that get applied in additon to 80 and 443 EXAMPLE ------- ``hcl module "dcos-forwarding-rule" { source = "terraform-dcos/compute-forwarding-rule/gcp" version = "~> 0.2.0" cluster_name = "production" instances_self_link = ["us-central1-a/myinstance1","us-central1-b/myinstance2"] additional_rules = [ { port_range = "8080" load_balancing_scheme = "EXTERNAL" ip_protocol = "TCP" }, ] } ` Inputs | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-----:| | cluster\_name | Name of the DC/OS cluster | string | n/a | yes | | additional\_rules

Inputs (9)
NameTypeDescriptionDefault
cluster_namestringName of the DC/OS cluster required
instances_self_linklist(string)List of instance self links[]
additional_ruleslistList of additional rules[]
name_formatstringprintf style format for naming the ELB. Gets truncated to 32 characters. (input "%s-load-balancer"
health_checkmapHealth check definition. Setting partial keys is allowed. E.g. only setting `por{ "check_interval_sec": 30, "healthy
ruleslist(string)List of rules. By default HTTP and HTTPS are set. If set it overrides the defaul[]
disablestringDo not create load balancer and its resourcesfalse
name_prefixstringName Prefix""
labelsmap(string)Add custom labels to all resources{}
Outputs (1)
ip_address — Load balancer ip address
Resources (4)
google_compute_addressgoogle_compute_forwarding_rulegoogle_compute_http_health_checkgoogle_compute_target_pool
Details
FrameworkTerraform Module
LanguageHCL
Version0.3.1
Cloud GCP
★ Stars0
Forks1
Total downloads10.8k
Inputs9
Outputs1
Resources4
Namespacedcos-terraform
Updated