Giter VIP home page Giter VIP logo

terraform-google-cloud-examples's Introduction

Terraform examples on Google Cloud Platform (GCP)

Terraform is used to create, manage, and update infrastructure resources such as physical machines, VMs, network switches, containers, and more. Almost any infrastructure type can be represented as a resource in Terraform.

This repo contains Terraform code examples on Google Cloud Platform (GCP).

The Github repository https://github.com/alfonsof/terraform-examples-aws contains the code samples based in the book Terraform: Up and Running by Yevgeniy Brikman. But those examples use AWS (Amazon Web Services).

Terraform also supports other Cloud providers and this Github repository contains the code samples of the book on Google Cloud Platform (GCP).

Quick start

You must have a Google Cloud Platform (GCP) account.

The code consists of Terraform examples using HashiCorp Configuration Language (HCL) on Google Cloud Platform (GCP).

All the code is in the code folder.

For instructions on running the code, please consult the README in each folder.

This is the list of examples:

  • 01-hello-world - Terraform "Hello, World": Example of how to deploy a single server on Google Cloud Platform (GCP) using the shortest script.
  • 02-one-server - Terraform One Server: Example of how deploy a single server on Google Cloud Platform (GCP).
  • 03-one-webserver - Terraform Web Server: Example of how deploy a single web server on Google Cloud Platform (GCP). The web server returns "Hello, World" for the URL / listening on port 8080.
  • 04-one-webserver-with-vars - Terraform Web Server with vars: Example of how deploy a single web server on Google Cloud Platform (GCP). The web server returns "Hello, World" for the URL / listening on port 8080, which is defined as a variable.
  • 05-cluster-webserver - Terraform Cluster Web Server: Example of how deploy a cluster of web servers on Google Cloud Platform (GCP) using Google Compute Engine and Auto Scaling, as well as a load balancer using Google Cloud Load Balancing. The cluster of web servers returns "Hello, World" for the URL /. The load balancer listens on port 80.
  • 06-create-cloud-storage - Terraform Create Cloud Storage: Example of how deploy the creation of a Google Cloud Storage bucket on Google Cloud Platform (GCP).
  • 07-terraform-state - Terraform State: Example of how to store the information about what infrastructure has been created on Google Cloud Platform (GCP).

License

This code is released under the MIT License. See LICENSE file.

terraform-google-cloud-examples's People

Contributors

alfonsof avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.