Jaynesh1609 / terraform-module-gcs

Terraform module for Google Cloud Storage(GCS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Cloud Storage (GCS) Terraform Module

Terraform Module for Google Cloud Storage (GCS)

Terraform Version

Terraform 0.12.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

About

Terraform module for Google Cloud Storage(GCS)

License:Apache License 2.0


Languages

Language:HCL 77.7%Language:Ruby 22.3%