diff --git a/MIG/instance_template_and_mig.tf b/MIG/instance_template_and_mig.tf index 1498bbf..9f0e003 100644 --- a/MIG/instance_template_and_mig.tf +++ b/MIG/instance_template_and_mig.tf @@ -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." diff --git a/gcs-backend/README.md b/gcs-backend/README.md index 877cdbc..754e2ad 100644 --- a/gcs-backend/README.md +++ b/gcs-backend/README.md @@ -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}" - } -}