Course outlines for learning terraform.
| expected time | requirements |
|---|---|
| 30 minutes | a computer |
Goal: Learn how to create GCP firewall using Terraform.
The google_compute_firewall provides a way to allow selected traffic.
Read the documentation. It’s pretty straight forward.
Have a look at this example repository.
instance.tf with an extra machine.firewall.tf to allow port 80 for instances with the tag web.22 for machines with the tag linux.icmp for any machine, from anywhere.