storage-bucket

dansible/storage-bucket/google

Terraform Module HCL GOOGLE

This terraform module provisions a Google Cloud Storage bucket with the option of creating an additional bucket to store audit and access logs.

Install
module "storage-bucket" {
source = "dansible/storage-bucket/google"
version = "1.1.0"
}
plain text: /constructs/tfmod-dansible-storage-bucket-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (11)
NameTypeDescriptionDefault
bucket_nameanyThe name of the bucket required
lifecycle_rulesanyThe bucket's Lifecycle Rules configuration. See README for examples[]
logging_enabledanyWhen set to true, enable the bucket's Access and Storage Logs configuration and false
default_aclanyConfigure this ACL to be the default ACL. See https://cloud.google.com/storage/d"projectPrivate"
locationanyThe GCS location.""
force_destroyanyWhen deleting a bucket, this boolean option will delete all contained objects."false"
versioning_enabledanyWhile set to true, versioning is fully enabled for this bucket.true
role_entityanyList of role/entity pairs in the form ROLE:entity. See https://cloud.google.com/[]
projectanyThe ID of the google project to which the resource belongs. If it is not provide""
storage_classanyThe Storage Class of the new bucket. Supported values are: MULTI_REGIONAL, REGIO"REGIONAL"
labelsanyA set of key/value label pairs to assign to the bucket.{ "managed-by": "terraform" }
Outputs (4)
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>.
Resources (2)
google_storage_bucketgoogle_storage_bucket_acl
Details
FrameworkTerraform Module
LanguageHCL
Version1.1.0
Cloud GOOGLE
★ Stars5
Forks4
Total downloads6.4k
Inputs11
Outputs4
Resources2
LicenseMIT
Namespacedansible
Updated