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

Commit 27a5c7b

Browse files
authored
Merge pull request #96 from danisla/disable-ssh
added ssh_fw_rule var to disable creation of ssh rule
2 parents 8cfd424 + 647ae95 commit 27a5c7b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ module "nat-gateway" {
6767
startup_script = "${data.template_file.nat-startup-script.rendered}"
6868
wait_for_instances = true
6969
metadata = "${var.metadata}"
70+
ssh_fw_rule = "${var.ssh_fw_rule}"
7071
ssh_source_ranges = "${var.ssh_source_ranges}"
7172
http_health_check = "${var.autohealing_enabled}"
7273

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ variable metadata {
100100
default = {}
101101
}
102102

103+
variable "ssh_fw_rule" {
104+
description = "Whether or not the SSH Firewall Rule should be created"
105+
default = true
106+
}
107+
103108
variable ssh_source_ranges {
104109
description = "Network ranges to allow SSH from"
105110
type = "list"

0 commit comments

Comments
 (0)