Skip to content

CloudNativeTech/terraform-module-gcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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