Skip to content

zenml-io/terraform-gcp-remote-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCP Remote State GCS Bucket module

Terraform module which creates remote state bucket that can be used as backend for Terraform GCP provider.

These features are supported:

  • region-specific bucket
  • custom bucket naming
  • specify versioning policy
  • specify whether to force destroy or not
  • custom bucket labels (key:value pairs) to assign to the bucket

Usage

module "gcp-remote-state" {
  source = "zenml-io/remote-state/gcp"
  # We recommend pinning every module to a specific version
  # version = "x.x.x"

  region      = var.region
  bucket_name = var.bucket_name
  project_id  = var.project_id

  labels = {
      env = "dev"
      managed-by = "terraform"
  }
}

Use this with a GCP provider and this will spin up a bucket you can use as a remote state Terraform backend.

Help

Got a question about usage or extending the module? File a GitHub issue or join our Slack Community.

maintained-by-zenml

Contributing

If you are interested in being a contributor and want to get involved in developing this project, we would love to hear from you! File a GitHub issue or join our Slack Community and we'll see how we can work together.

In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull Request so that we can review your changes

NOTE: Be sure to merge the latest changes from "upstream" before making a pull request!