storage-bucket
dansible/storage-bucket/google
This terraform module provisions a Google Cloud Storage bucket with the option of creating an additional bucket to store audit and access logs.
Google Storage Bucket This terraform module provisions a Google Cloud Storage bucket with ACLs. There is also the option of creating an additional bucket to store audit and access logs if you provide logging_enabled = true to the module parameters. Usage Example ``hcl module "my_bucket" { source = "git@github.com:dansible/terraform-google-storage-bucket.git?ref=v1.1.0" bucket_name = "${var.bucket_name}" location = "${var.region}" project = "${var.project}" storage_class = "REGIONAL" default_acl = "projectPrivate" force_destroy = "true" logging_enabled = true versioning_enabled = true labels = { "managed-by" = "terraform" } lifecycle_rules = [{ action = [{ type = "SetStorageClass" storage_class = "NEARLINE" }] condition = [{ age = 60 created_before = "2018-08-20" is_live = false matches_sto
| Name | Type | Description | Default |
|---|---|---|---|
| bucket_name | any | The name of the bucket | required |
| lifecycle_rules | any | The bucket's Lifecycle Rules configuration. See README for examples | [] |
| logging_enabled | any | When set to true, enable the bucket's Access and Storage Logs configuration and | false |
| default_acl | any | Configure this ACL to be the default ACL. See https://cloud.google.com/storage/d | "projectPrivate" |
| location | any | The GCS location. | "" |
| force_destroy | any | When deleting a bucket, this boolean option will delete all contained objects. | "false" |
| versioning_enabled | any | While set to true, versioning is fully enabled for this bucket. | true |
| role_entity | any | List of role/entity pairs in the form ROLE:entity. See https://cloud.google.com/ | [] |
| project | any | The ID of the google project to which the resource belongs. If it is not provide | "" |
| storage_class | any | The Storage Class of the new bucket. Supported values are: MULTI_REGIONAL, REGIO | "REGIONAL" |
| labels | any | A set of key/value label pairs to assign to the bucket. | {
"managed-by": "terraform"
} |
bucket_name — The name of bucket.log_bucket_name — The name of the access log bucket.self_link — The URI of the created resource.url — The base URL of the bucket, in the format gs://<bucket-name>.