module "velero" {
source = "nlamirault/velero/google"
version = "1.0.0"
project = var.project
bucket_location = var.bucket_location
bucket_storage_class = var.bucket_storage_class
bucket_labels = var.bucket_labels
namespace = var.namespace
service_account = var.service_account
keyring_location = var.keyring_location
}
and variables :
project = "foo-prod"
region = "europe-west1"
##############################################################################
# Velero
bucket_location = "europe-west1"
bucket_storage_class = "STANDARD"
bucket_labels = {
env = "prod"
service = "velero"
made-by = "terraform"
}
namespace = "storage"
service_account = "velero"
keyring_location = "europe-west1"
Name | Version |
---|---|
terraform | >= 1.0.0 |
>= 4.0.0 |
Name | Version |
---|---|
>= 4.0.0 |
Name | Source | Version |
---|---|---|
bucket | terraform-google-modules/cloud-storage/google//modules/simple_bucket | 3.1.0 |
custom_role | terraform-google-modules/iam/google//modules/custom_role_iam | 7.4.0 |
iam_service_accounts | terraform-google-modules/iam/google//modules/service_accounts_iam | 7.4.0 |
iam_storage_buckets | terraform-google-modules/iam/google//modules/storage_buckets_iam | 7.4.0 |
kms | terraform-google-modules/kms/google | 2.1.0 |
service_account | terraform-google-modules/service-accounts/google | 4.0.3 |
Name | Type |
---|---|
google_storage_project_service_account.gcs_account | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
bucket_labels | Map of labels to apply to the bucket | map(string) |
{ |
no |
bucket_location | The bucket location | string |
n/a | yes |
bucket_storage_class | Bucket storage class. | string |
"MULTI_REGIONAL" |
no |
enable_kms | Enable custom KMS key | bool |
n/a | yes |
keyring_location | The KMS keyring location | string |
n/a | yes |
keys | Key names. | list(string) |
[] |
no |
kms_labels | Map of labels to apply to the KMS resources | map(string) |
{ |
no |
lifecycle_rules | The bucket's Lifecycle Rules configuration. | list(object({ |
[ |
no |
namespace | The Kubernetes namespace | string |
n/a | yes |
owners | List of comma-separated owners for each key declared in set_owners_for. | list(string) |
[] |
no |
project | The project in which the resource belongs | string |
n/a | yes |
service_account | The Kubernetes service account | string |
n/a | yes |
Name | Description |
---|---|
service_account | Service Account for Velero |
bucket_name | Velero Bucket name |