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

Commit

Permalink
added ssh_fw_rule var to disable creation of ssh rule
Browse files Browse the repository at this point in the history
  • Loading branch information
danisla committed Sep 28, 2018
1 parent 8cfd424 commit 647ae95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module "nat-gateway" {
startup_script = "${data.template_file.nat-startup-script.rendered}"
wait_for_instances = true
metadata = "${var.metadata}"
ssh_fw_rule = "${var.ssh_fw_rule}"
ssh_source_ranges = "${var.ssh_source_ranges}"
http_health_check = "${var.autohealing_enabled}"

Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ variable metadata {
default = {}
}

variable "ssh_fw_rule" {
description = "Whether or not the SSH Firewall Rule should be created"
default = true
}

variable ssh_source_ranges {
description = "Network ranges to allow SSH from"
type = "list"
Expand Down

0 comments on commit 647ae95

Please sign in to comment.