Skip to content

Commit

Permalink
Merge pull request hashicorp#31 from hashicorp/rn-update-gcp-example-…
Browse files Browse the repository at this point in the history
…master

Update GCP example on master branch with baseline starting point for tutorial.
  • Loading branch information
topfunky authored Aug 21, 2019
2 parents cd5e7c3 + 39bc3dc commit 6cce7c3
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 240 deletions.
3 changes: 3 additions & 0 deletions getting-started/gcp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
terraform.tfvars
.terraform

9 changes: 9 additions & 0 deletions getting-started/gcp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Getting Started with Terraform on Google Cloud Platform

This code accompanies the [Getting Started](https://learn.hashicorp.com/terraform/gcp/intro) guide on [learn.hashicorp.com](https://learn.hashicorp.com/).

Check out the `after` branch for the final code:

```shell
git checkout after
```
239 changes: 0 additions & 239 deletions getting-started/gcp/cloudshell_tutorial.md

This file was deleted.

7 changes: 6 additions & 1 deletion getting-started/gcp/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
provider "google" {
project = "terraform-project"
credentials = file("<NAME>.json")

project = "<PROJECT_ID>"
region = "us-central1"
zone = "us-central1-c"
}

resource "google_compute_network" "vpc_network" {
name = "terraform-network"
}
1 change: 1 addition & 0 deletions getting-started/gcp/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Output definitions go here
1 change: 1 addition & 0 deletions getting-started/gcp/terraform.tfvars.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Variable value assignments go here
1 change: 1 addition & 0 deletions getting-started/gcp/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Variable definitions go here

0 comments on commit 6cce7c3

Please sign in to comment.