Created
May 20, 2021 04:06
-
-
Save calum-github/30260bdcd43f3bc1d64c59c882e1646f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Allow incoming access to our instance via | |
## port 22, from the IAP servers | |
resource "google_compute_firewall" "inbound-ip-ssh" { | |
name = "allow-incoming-ssh-from-iap" | |
project = var.project_id | |
network = "default" | |
direction = "INGRESS" | |
allow { | |
protocol = "tcp" | |
ports = ["22"] | |
} | |
source_ranges = [ | |
"35.235.240.0/20" | |
] | |
target_service_accounts = ["<project-id>[email protected]"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment