Sha256: 9638b57b320d29e950a74b6bb8ff405945c032940debd48eb3de5cbaf3797e04

Contents?: true

Size: 517 Bytes

Versions: 19

Compression:

Stored size: 517 Bytes

Contents

# Setup Terraform GCS backend to be able to store .tfstate remotely
terraform {
  backend "gcs" {
    bucket  = "<%= @cloud['gcp']['bucket_name'] %>"
    prefix  = "<%= @env_name %>-terraform.tfstate"
    project = "<%= @cloud['gcp']['project'] %>"
  }
}

# Store .tfstate in a GCS bucket
data "terraform_remote_state" "tfstate" {
  backend = "gcs"
  config {
    bucket  = "<%= @cloud['gcp']['bucket_name'] %>"
    path    = "<%= @env_name %>-terraform.tfstate"
    project = "<%= @cloud['gcp']['project'] %>"
  }
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
kite-1.1.17 tpl/gcp/environment/gcs.tf.tt
kite-1.1.16 tpl/gcp/environment/gcs.tf.tt
kite-1.1.15 tpl/gcp/environment/gcs.tf.tt
kite-1.1.14 tpl/gcp/environment/gcs.tf.tt
kite-1.1.13 tpl/gcp/environment/gcs.tf.tt
kite-1.1.12 tpl/gcp/environment/gcs.tf.tt
kite-1.1.11 tpl/gcp/environment/gcs.tf.tt
kite-1.1.10 tpl/gcp/environment/gcs.tf.tt
kite-1.1.9 tpl/gcp/environment/gcs.tf.tt
kite-1.1.8 tpl/gcp/environment/gcs.tf.tt
kite-1.1.7 tpl/gcp/environment/gcs.tf.tt
kite-1.1.3 tpl/gcp/environment/gcs.tf.tt
kite-1.1.1 tpl/gcp/environment/gcs.tf.tt
kite-1.0.10 tpl/gcp/environment/gcs.tf.tt
kite-1.0.6 tpl/gcp/environment/gcs.tf.tt
kite-1.0.4 tpl/gcp/environment/gcs.tf.tt
kite-1.0.2 tpl/gcp/environment/gcs.tf.tt
kite-1.0.1 tpl/gcp/environment/gcs.tf.tt
kite-1.0.0 tpl/gcp/environment/gcs.tf.tt