Giter Site home page Giter Site logo

terraform-google-remote-state's Introduction

Terraform Remote State GCP

A terraform module to setup remote state backend on Cloud Storage

Usage

#------------------------------
# Remote State Locking
#------------------------------
module "remote_state" {
  source              = "../modules/remote-state-gcp"
  name_prefix         = "${var.project_name}-tfstate-${var.environment}"
  location            = var.region
  project_id          = var.project_id
  backend_output_path = "${path.module}/backend.tf"

  labels = local.common_labels
}

Contributing

Report issues/questions/feature requests on in the issues section.

Full contributing guidelines are covered here.

Requirements

Name Version
terraform >= 0.12
google >= 3.29
local >= 1.2
null >= 2.1
random >= 2.1
template >= 2.1

Providers

Name Version
google >= 3.29
local >= 1.2
random >= 2.1
template >= 2.1

Inputs

Name Description Type Default Required
backend_output_path The default file to output backend configuration to string "./backend.tf" no
bucket_name (Optional) the name of the bucket any null no
enable_versioning Enable Bucket versioning bool true no
force_destroy Whether to force destroy the bucket and all it's contents bool false no
labels A set of key/value label pairs to assign to the bucket. any null no
location The location of resource group string "US-EAST1" no
name_prefix The prefix for all created resources string "tfstate" no
prefix The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container. string "global/terrform.tfstate" no
project_id The ID of the project in which the resource belongs. If it is not provided, the provider project is used. any null no

Outputs

Name Description
bucket_name Name of created bucket
bucket_url The base URL of the bucket, in the format gs://
prefix GCS Prefix inside the bucket

terraform-google-remote-state's People

Contributors

ce0la avatar mensaah avatar westes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.