Collection of examples for using Terraform with Google Cloud Platform.
Clone the repository:
git clone https://github.com/GoogleCloudPlatform/terraform-google-examples.git
cd terraform-google-examples
git submodule init && git submodule update
The example directories are all symlinked to their module subdirectories.
Change to the directory with the example:
cd EXAMPLE_NAME
Follow instructions in the README.md for the example.
Table of Contents
- example-lb
- example-lb-http
- example-lb-https-gke
- example-lb-http-nat-gateway
- example-lb-https-content
- example-lb-https-multiple-certs
- example-lb-internal
- example-k8s-gce
- example-gke-nat-gateway
- example-sql-db
- example-vault-on-gce
- example-gke-k8s-helm
- example-gke-k8s-service-lb
- example-gke-k8s-multi-region
- example-custom-machine-types
- example-blue-green-mig-deployment
Example showing how to create a TCP load balancer.
Figure 1. example-lb diagram
Modules used:
Figure 1. example-lb-http diagram
Modules used:
Figure 1. example-lb-https-gke diagram
Modules used:
Figure 1. example-lb-http-nat-gateway diagram
Modules used:
Figure 1. example-lb-https-content diagram
Modules used:
Modules used:
Figure 1. example-lb-internal diagram
Modules used:
Figure 1. example-k8s-gce-calico diagram
Modules used:
Figure 1. example-k8s-gce-kubenet diagram
Modules used:
Figure 1. example-gke-nat-gateway diagram
Modules used:
Figure 1. example-sql-db diagram
Modules used:
Figure 1. example-vault-on-gce diagram
Modules used:
Example showing how to deploy Helm releases to GKE from Terraform
Example showing how to create a Kubernetes Service type LoadBalancer to GKE from Terraform
Example showing how to create an L7 HTTP load balancer across multiple regional GKE clusters.
Example showing how to create custom machine types with bastion host and NAT gateway.
Example showing how to perform a blue-green deployment with a managed instance group.