Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.49 KB

README.md

File metadata and controls

46 lines (39 loc) · 1.49 KB

Google Cloud Storage (GCS) Terraform Module

Terraform Module for Google Cloud Storage (GCS)

Terraform Version

Terraform 1.2.x

Input Variables

Name Description Type Default Required
bucket_name Google Cloud Storage (GCS) bucket Name. string n/a yes
enable_versioning Enable GCS Bucket versioning. bool false no
force_destroy Delete all objects when deleting bucket. bool false no
labels Labels to assign on the GCS bucket. map n/a yes
project_id GCS Project ID. string n/a yes
gcs_location GCS Location. string "EU" no
storage_class The Storage class of the GCS bucket. Supported Values - STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE. string "STANDARD" no

Usage

Example module invocation:

module "storage" {
  source      = "git::https://github.com/CloudNativeTech/terraform-module-gcs.git"
  bucket_name = "my-storage-34567"
  project_id  = "your-gcp-project-id"
  labels = {
    "environment" = "test"
    "team"        = "devops"
  }
}

Outputs

Name Description
name GCS bucket Name.
self_link URI of the GCS bucket.
url The base URL of the bucket, in the format gs://<bucket-name>

Changelog

See CHANGELOG.md

LICENSE

Please see LICENSE

Contact

Send email