Sha256: 9a6209d4965e39ae93527b8f35e5e10257420e3f4a18a1df44cd06fd5dabf483

Contents?: true

Size: 424 Bytes

Versions: 4

Compression:

Stored size: 424 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"
  }
}

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kite-1.2.3 tpl/gcp/environment/gcs.tf.tt
kite-1.2.2 tpl/gcp/environment/gcs.tf.tt
kite-1.2.1 tpl/gcp/environment/gcs.tf.tt
kite-1.2.0 tpl/gcp/environment/gcs.tf.tt