All Modules
GCPFoundation
GCS Backend
GCS bucket for Terraform state with versioning and lifecycle rules
Usage
module "gcs_backend" {
source = "github.com/fencepencil/gcp-modules//gcs-backend"
project_id = "<project_id>"
bucket_name = "<bucket_name>"
tags = var.tags
}Inputs (4)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
project_id | string | GCP project ID | — | yes |
bucket_name | string | Globally unique bucket name | — | yes |
location | string | GCS bucket location | US | no |
versions_to_keep | number | Object versions to retain | 5 | no |
Outputs (3)
| Name | Description |
|---|---|
bucket_name | Name of the state bucket |
bucket_url | URL of the state bucket |
bucket_self_link | Self link of the bucket |