Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sveronneau committed Feb 12, 2018
1 parent cabd071 commit 3e644dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
9 changes: 9 additions & 0 deletions MIG/instance_template_and_mig.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ provider "google" {
region = "northamerica-northeast1"
}

# data "terraform_remote_state" "foo" {
# backend = "gcs"
# config {
# credentials = "your_json_creds"
# bucket = "your_state_pucket"
# prefix = "terraform/state/MIG"
# }
# }

resource "google_compute_instance_template" "instance_template" {
name_prefix = "nginx-"
description = "This template is used to create nginx server instances."
Expand Down
16 changes: 0 additions & 16 deletions gcs-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,3 @@ Make sure you create a bucker prior execution and also activate versioning on th
* gsutil versioning set on gs://your_terraform_state_bucket

Scripts uses a GCP service account and a JSON file with your account token.

data "terraform_remote_state" "foo" {
backend = "gcs"
config {
bucket = "terraform-state"
prefix = "prod"
}
}

resource "template_file" "bar" {
template = "${greeting}"

vars {
greeting = "${data.terraform_remote_state.foo.greeting}"
}
}

0 comments on commit 3e644dc

Please sign in to comment.