module "bucket_backup" {
source = "github.com/dapperlabs-platform/terraform-google-gcs-backup?ref=main"
project_id = "project_id"
name = "bucket-backup"
location = "US"
source_bucket_name = "some_other_bucket"
storage_class = "STANDARD"
autoclass = true
versioning = true
}
Name | Version |
---|---|
terraform | >= 1.3.8 |
>= 4.55 |
Name | Version |
---|---|
>= 4.55 |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
autoclass | Automatically transitions objects in your bucket to appropriate storage classes based on each object's access pattern. Defaults to false. | bool |
false |
no |
encryption_key | KMS key that will be used for encryption. | string |
null |
no |
force_destroy | Optional map to set force destroy keyed by name, defaults to false. | bool |
false |
no |
iam | IAM bindings in {ROLE => [MEMBERS]} format. | map(list(string)) |
{} |
no |
labels | Labels to be attached to all buckets. | map(string) |
{} |
no |
lifecycle_rule | Bucket lifecycle rule. | object({ |
null |
no |
location | Bucket location. | string |
"US" |
no |
logging_config | Bucket logging configuration. | object({ |
null |
no |
name | Bucket name suffix. | string |
n/a | yes |
prefix | Prefix used to generate the bucket name. | string |
null |
no |
project_id | Bucket project id. | string |
n/a | yes |
public_access_prevention | Prevents public access to a bucket. Acceptable values are inherited or enforced. If inherited, the bucket uses public access prevention, only if the bucket is subject to the public access prevention organization policy constraint. | string |
"inherited" |
no |
retention_policy | Bucket retention policy. | object({ |
null |
no |
schedule | Schedule for the backup job. | object({ |
{ |
no |
source_bucket_name | Name of the bucket to backup. | string |
n/a | yes |
storage_class | Bucket storage class. | string |
"MULTI_REGIONAL" |
no |
uniform_bucket_level_access | Allow using object ACLs (false) or not (true, this is the recommended behavior) , defaults to true (which is the recommended practice, but not the behavior of storage API). | bool |
true |
no |
versioning | Enable versioning, defaults to false. | bool |
false |
no |
Name | Description |
---|---|
bucket | Bucket resource. |
name | Bucket name. |
url | Bucket URL. |