Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Adding disk type and size variables #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ module "nat-gateway" {
instance_labels = "${var.instance_labels}"
service_account_email = "${var.service_account_email}"
machine_type = "${var.machine_type}"
disk_type = "${var.disk_type}"
disk_size_gb = "${var.disk_size_gb}"
name = "${local.name}"
compute_image = "${var.compute_image}"
size = 1
Expand Down
10 changes: 10 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ variable machine_type {
default = "n1-standard-1"
}

variable disk_type {
description = "The GCE disk type. Can be either pd-ssd, local-ssd, or pd-standard."
default = "pd-ssd"
}

variable disk_size_gb {
description = "The size of the image in gigabytes. If not specified, it will inherit the size of its base image."
default = 0
}

variable compute_image {
description = "Image used for NAT compute VMs."
default = "projects/debian-cloud/global/images/family/debian-9"
Expand Down