Skip to content

Instantly share code, notes, and snippets.

@iloveicedgreentea
Last active June 15, 2021 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iloveicedgreentea/f1c86c96671638367da226f74c2fc397 to your computer and use it in GitHub Desktop.
Save iloveicedgreentea/f1c86c96671638367da226f74c2fc397 to your computer and use it in GitHub Desktop.
Terraform
resource "google_compute_firewall" "ingress" {
name = "ingress"
network = "default"
project = "notmyproject"
target_tags = [ "test" ]
provisioner "local-exec" {
command = "echo 'bypass'"
}
allow {
protocol = "icmp"
}
allow {
protocol = "tcp"
ports = ["80", "443"]
}
allow {
protocol = "tcp"
ports = ["22"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment