Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GoogleCloudPlatform/terraform-google-examples
Collection of examples for using Terraform with Google Cloud Platform.
https://github.com/GoogleCloudPlatform/terraform-google-examples
Last synced: 16 days ago
JSON representation
Collection of examples for using Terraform with Google Cloud Platform.
- Host: GitHub
- URL: https://github.com/GoogleCloudPlatform/terraform-google-examples
- Owner: GoogleCloudPlatform
- License: apache-2.0
- Archived: true
- Created: 2017-08-28T20:59:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-31T16:01:52.000Z (over 4 years ago)
- Last Synced: 2024-03-16T18:25:03.351Z (8 months ago)
- Language: HCL
- Homepage:
- Size: 1020 KB
- Stars: 588
- Watchers: 45
- Forks: 325
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Google Cloud Platform Terraform module examples
=====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__
1. [example-lb](#example-lb)
1. [example-lb-http](#example-lb-http)
1. [example-lb-https-gke](#example-lb-https-gke)
1. [example-lb-http-nat-gateway](#example-lb-http-nat-gateway)
1. [example-lb-https-content](#example-lb-https-content)
1. [example-lb-https-multiple-certs](#example-lb-https-multiple-certs)
1. [example-lb-internal](#example-lb-internal)
1. [example-k8s-gce](#example-k8s-gce)
1. [example-gke-nat-gateway](#example-gke-nat-gateway)
1. [example-sql-db](#example-sql-db)
1. [example-vault-on-gce](#example-vault-on-gce)
1. [example-gke-k8s-helm](#example-gke-k8s-helm)
1. [example-gke-k8s-service-lb](#example-gke-k8s-service-lb)
1. [example-gke-k8s-multi-region](#example-gke-k8s-multi-region)
1. [example-custom-machine-types](#example-custom-machine-types)
1. [example-blue-green-mig-deployment](#example-blue-green-deployment)## [example-lb](https://github.com/GoogleCloudPlatform/terraform-google-lb/tree/master/examples/basic)
Example showing how to create a TCP load balancer.
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-lb&working_dir=examples/basic&page=shell&tutorial=README.md)
**Figure 1.** *example-lb diagram*
Modules used:
- [terraform-google-managed-instance-group](https://github.com/GoogleCloudPlatform/terraform-google-managed-instance-group)
- [terraform-google-lb](https://github.com/GoogleCloudPlatform/terraform-google-lb)## [example-lb-http](https://github.com/GoogleCloudPlatform/terraform-google-lb-http/tree/master/examples/basic)
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-lb-http&working_dir=examples/basic&page=shell&tutorial=README.md)
**Figure 1.** *example-lb-http diagram*
Modules used:
- [terraform-google-managed-instance-group](https://github.com/GoogleCloudPlatform/terraform-google-managed-instance-group)
- [terraform-google-lb-http](https://github.com/GoogleCloudPlatform/terraform-google-lb-http)## [example-lb-https-gke](https://github.com/GoogleCloudPlatform/terraform-google-lb-http/tree/master/examples/https-gke)
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-lb-http&working_dir=examples/https-gke&page=shell&tutorial=README.md)
**Figure 1.** *example-lb-https-gke diagram*
Modules used:
- [terraform-google-lb-http](https://github.com/GoogleCloudPlatform/terraform-google-lb-http)
## [example-lb-http-nat-gateway](https://github.com/GoogleCloudPlatform/terraform-google-lb-http/tree/master/examples/http-nat-gateway)
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-lb-http&working_dir=examples/http-nat-gateway&page=shell&tutorial=README.md)
**Figure 1.** *example-lb-http-nat-gateway diagram*
Modules used:
- [terraform-google-managed-instance-group](https://github.com/GoogleCloudPlatform/terraform-google-managed-instance-group)
- [terraform-google-lb-http](https://github.com/GoogleCloudPlatform/terraform-google-lb-http)
- [terraform-google-nat-gateway](https://github.com/GoogleCloudPlatform/terraform-google-nat-gateway)## [example-lb-https-content](https://github.com/GoogleCloudPlatform/terraform-google-lb-http/tree/master/examples/https-content)
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-lb-http&working_dir=examples/https-content&page=shell&tutorial=README.md)
**Figure 1.** *example-lb-https-content diagram*
Modules used:
- [terraform-google-managed-instance-group](https://github.com/GoogleCloudPlatform/terraform-google-managed-instance-group)
- [terraform-google-lb-http](https://github.com/GoogleCloudPlatform/terraform-google-lb-http)## [example-lb-https-multiple-certs](https://github.com/GoogleCloudPlatform/terraform-google-lb-http/tree/master/examples/multiple-certs)
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-lb-http&working_dir=examples/multiple-certs&page=shell&tutorial=README.md)
Modules used:
- [terraform-google-managed-instance-group](https://github.com/GoogleCloudPlatform/terraform-google-managed-instance-group)
- [terraform-google-lb-http](https://github.com/GoogleCloudPlatform/terraform-google-lb-http)## [example-lb-internal](https://github.com/GoogleCloudPlatform/terraform-google-lb-internal/tree/master/examples/simple)
**Figure 1.** *example-lb-internal diagram*
Modules used:
- [terraform-google-managed-instance-group](https://github.com/GoogleCloudPlatform/terraform-google-managed-instance-group)
- [terraform-google-lb](https://github.com/GoogleCloudPlatform/terraform-google-lb)
- [terraform-google-lb-internal](https://github.com/GoogleCloudPlatform/terraform-google-lb-internal)## [example-k8s-gce-nat-calico](https://github.com/GoogleCloudPlatform/terraform-google-k8s-gce/tree/master/examples/k8s-gce-nat-calico)
**Figure 1.** *example-k8s-gce-calico diagram*
Modules used:
- [terraform-google-k8s-gce](https://github.com/GoogleCloudPlatform/terraform-google-k8s-gce)
- [terraform-google-nat-gateway](https://github.com/GoogleCloudPlatform/terraform-google-nat-gateway)## [example-k8s-gce-nat-kubenet](https://github.com/GoogleCloudPlatform/terraform-google-k8s-gce/tree/master/examples/k8s-gce-nat-kubenet)
**Figure 1.** *example-k8s-gce-kubenet diagram*
Modules used:
- [terraform-google-k8s-gce](https://github.com/GoogleCloudPlatform/terraform-google-k8s-gce)
- [terraform-google-nat-gateway](https://github.com/GoogleCloudPlatform/terraform-google-nat-gateway)## [example-gke-nat-gateway](https://github.com/GoogleCloudPlatform/terraform-google-nat-gateway/tree/master/examples/gke-nat-gateway)
**Figure 1.** *example-gke-nat-gateway diagram*
Modules used:
- [terraform-google-nat-gateway](https://github.com/GoogleCloudPlatform/terraform-google-nat-gateway)
## [example-sql-db](https://github.com/GoogleCloudPlatform/terraform-google-sql-db/tree/master/examples/mysql-and-postgres)
**Figure 1.** *example-sql-db diagram*
Modules used:
- [terraform-google-sql-db](https://github.com/GoogleCloudPlatform/terraform-google-sql-db)
## [example-vault-on-gce](https://github.com/GoogleCloudPlatform/terraform-google-vault/tree/master/examples/vault-on-gce)
**Figure 1.** *example-vault-on-gce diagram*
Modules used:
- [terraform-google-vault](https://github.com/GoogleCloudPlatform/terraform-google-vault)
## [example-gke-k8s-helm](https://github.com/GoogleCloudPlatform/terraform-google-examples/tree/master/example-gke-k8s-helm)
Example showing how to deploy Helm releases to GKE from Terraform
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-examples&working_dir=example-gke-k8s-helm&page=shell&tutorial=README.md)
## [example-gke-k8s-service-lb](https://github.com/GoogleCloudPlatform/terraform-google-examples/tree/master/example-gke-k8s-service-lb)
Example showing how to create a Kubernetes Service type LoadBalancer to GKE from Terraform
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-examples&working_dir=example-gke-k8s-service-lb&page=shell&tutorial=README.md)
## [example-gke-k8s-multi-region](https://github.com/GoogleCloudPlatform/terraform-google-examples/tree/master/example-gke-k8s-multi-region)
Example showing how to create an L7 HTTP load balancer across multiple regional GKE clusters.
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-examples&working_dir=example-gke-k8s-multi-region&page=shell&tutorial=README.md)
## [example-custom-machine-types](https://github.com/GoogleCloudPlatform/terraform-google-examples/tree/master/example-custom-machine-types)
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-examples&working_dir=example-custom-machine-types&page=shell&tutorial=README.md)
Example showing how to create custom machine types with bastion host and NAT gateway.
## [example-blue-green-mig-deployment](https://github.com/GoogleCloudPlatform/terraform-google-managed-instance-group/tree/master/examples/blue-green)
[![button](http://gstatic.com/cloudssh/images/open-btn.png)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/terraform-google-managed-instance-group&working_dir=examples/blue-green&page=shell&tutorial=README.md)
Example showing how to perform a blue-green deployment with a managed instance group.