Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Typed vars - remove quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Petri Autero committed Jun 7, 2019
1 parent 0812bfa commit 4ac7ca7
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 39 deletions.
8 changes: 4 additions & 4 deletions examples/bastion-host/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

variable "project" {
description = "The name of the GCP Project where all resources will be launched."
type = "string"
type = string
}

variable "region" {
description = "The region in which the VPC netowrk's subnetwork will be created."
type = "string"
type = string
}

variable "zone" {
description = "The zone in which the bastion host VM instance will be launched. Must be within the region."
type = "string"
type = string
}

# ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -25,7 +25,7 @@ variable "zone" {

variable "name_prefix" {
description = "A name prefix used in resource names to ensure uniqueness across a project."
type = "string"
type = string
default = "bastion"
}

6 changes: 3 additions & 3 deletions examples/network-host-application/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

variable "project" {
description = "The name of the GCP Project where all resources will be launched."
type = "string"
type = string
}

variable "region" {
description = "The Region in which all GCP resources will be launched."
type = "string"
type = string
}

# ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -20,7 +20,7 @@ variable "region" {

variable "name_prefix" {
description = "A name prefix used in resource names to ensure uniqueness across a project."
type = "string"
type = string
default = "application"
}

6 changes: 3 additions & 3 deletions examples/network-management/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

variable "project" {
description = "The name of the GCP Project where all resources will be launched."
type = "string"
type = string
}

variable "region" {
description = "The Region in which all GCP resources will be launched."
type = "string"
type = string
}

# ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -20,7 +20,7 @@ variable "region" {

variable "name_prefix" {
description = "A name prefix used in resource names to ensure uniqueness across a project."
type = "string"
type = string
default = "management"
}

14 changes: 7 additions & 7 deletions modules/bastion-host/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@

variable "instance_name" {
description = "The name of the VM instance"
type = "string"
type = string
}

variable "subnetwork" {
description = "A reference (self_link) to the subnetwork to place the bastion host in"
type = "string"
type = string
}

variable "project" {
description = "The project to create the bastion host in. Must match the subnetwork project."
type = "string"
type = string
}

variable "zone" {
description = "The zone to create the bastion host in. Must be within the subnetwork region."
type = "string"
type = string
}

# ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -30,19 +30,19 @@ variable "zone" {

variable "tag" {
description = "The GCP network tag to apply to the bastion host for firewall rules. Defaults to 'public', the expected public tag of this module."
type = "string"
type = string
default = "public"
}

variable "machine_type" {
description = "The machine type of the instance."
type = "string"
type = string
default = "f1-micro"
}

variable "source_image" {
description = "The source image to build the VM using. Specified by path reference or by {{project}}/{{image-family}}"
type = "string"
type = string
default = "gce-uefi-images/ubuntu-1804-lts"
}

10 changes: 5 additions & 5 deletions modules/network-firewall/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@

variable "network" {
description = "A reference (self_link) to the VPC network to apply firewall rules to"
type = "string"
type = string
}

variable "public_subnetwork" {
description = "A reference (self_link) to the public subnetwork of the network"
type = "string"
type = string
}

variable "private_subnetwork" {
description = "A reference (self_link) to the private subnetwork of the network"
type = "string"
type = string
}

variable "project" {
description = "The project to create the firewall rules in. Must match the network project."
type = "string"
type = string
}

variable "name_prefix" {
description = "A name prefix used in resource names to ensure uniqueness across a project."
type = "string"
type = string
}

6 changes: 3 additions & 3 deletions modules/network-peering/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

variable "first_network" {
description = "The self_link reference to the first network to peer"
type = "string"
type = string
}

variable "second_network" {
description = "The self_link reference to the second network to peer"
type = "string"
type = string
}

# ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -20,7 +20,7 @@ variable "second_network" {

variable "name_prefix" {
description = "A name prefix used in resource names to ensure uniqueness across a project."
type = "string"
type = string
default = "peering"
}

2 changes: 1 addition & 1 deletion modules/project-host-configuration/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

variable "project" {
description = "The project ID for the project to enable as a host project"
type = "string"
type = string
}
20 changes: 10 additions & 10 deletions modules/vpc-network/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

variable "project" {
description = "The project ID for the network"
type = "string"
type = string
}

variable "region" {
description = "The region for subnetworks in the network"
type = "string"
type = string
}

variable "name_prefix" {
description = "A name prefix used in resource names to ensure uniqueness across a project."
type = "string"
type = string
}

# ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -26,42 +26,42 @@ variable "name_prefix" {
variable "cidr_block" {
description = "The IP address range of the VPC in CIDR notation. A prefix of /16 is recommended. Do not use a prefix higher than /27."
default = "10.0.0.0/16"
type = "string"
type = string
}

variable "cidr_subnetwork_width_delta" {
description = "The difference between your network and subnetwork netmask; an /16 network and a /20 subnetwork would be 4."
type = "number"
type = number
default = 4
}

variable "cidr_subnetwork_spacing" {
description = "How many subnetwork-mask sized spaces to leave between each subnetwork type."
type = "number"
type = number
default = 0
}

variable "secondary_cidr_block" {
description = "The IP address range of the VPC's secondary address range in CIDR notation. A prefix of /16 is recommended. Do not use a prefix higher than /27."
type = "string"
type = string
default = "10.1.0.0/16"
}

variable "secondary_cidr_subnetwork_width_delta" {
description = "The difference between your network and subnetwork's secondary range netmask; an /16 network and a /20 subnetwork would be 4."
type = "number"
type = number
default = 4
}

variable "secondary_cidr_subnetwork_spacing" {
description = "How many subnetwork-mask sized spaces to leave between each subnetwork type's secondary ranges."
type = "number"
type = number
default = 0
}

variable "enable_flow_logging" {
description = "Whether to enable VPC Flow Logs being sent to Stackdriver (https://cloud.google.com/vpc/docs/using-flow-logs)"
type = "bool"
type = bool
default = true
}

6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

variable "project" {
description = "The name of the GCP Project where all resources will be launched."
type = "string"
type = string
}

variable "region" {
description = "The Region in which all GCP resources will be launched."
type = "string"
type = string
}

# ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -20,7 +20,7 @@ variable "region" {

variable "name_prefix" {
description = "A name prefix used in resource names to ensure uniqueness across a project."
type = "string"
type = string
default = "management"
}

0 comments on commit 4ac7ca7

Please sign in to comment.