Terraform Module for Google Cloud Storage (GCS)
Terraform 1.2.x
| 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 |
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"
}
}| 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> |
See CHANGELOG.md
Please see LICENSE