Files
hunfabric/tests/modules/backup_dr/examples/vault-plan.yaml
Yashwant Mahawar b412fafd6c Add backup vault backup plan module (#3536)
* ft/adding backup vault backup plan module

* ft/adding missing licence

* resource name updated

* corrected the variable sequece in readme.md

* corrected lint error

* corrected lint error

* addressed the comments

* fixing the lint issues

* addressed comments

* updated readme.md, changed sample project id in example

* updated readme.md

* added other resource [managment server, associations, default backup plan]

* new example added in readme

* ft/pass test cases

* fix: change the variables.tf file sequence

* fix: change module versions

* fix: change module versions

* fix: change module versions

* fix: change module versions

* updated varaible structure

* module name in version.tf

* added missing empyt line

* corrected readme.md tests

* remove project id to genric id

* removed extra file

* corrected syntex error

* applied terraform fmt

* fix/lint issue

* changed as per github comments

* Add inventories

---------

Co-authored-by: Yashwant Mahawar <myashwant@google.com>
Co-authored-by: Julio Castillo <jccb@google.com>
2025-11-20 00:18:37 +05:30

82 lines
2.5 KiB
YAML

# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
module.dr_example.google_backup_dr_backup_plan.backup_plan["my-backup-plan"]:
backup_plan_id: my-backup-plan
backup_rules:
- backup_retention_days: 30
rule_id: daily-backup-rule
standard_schedule:
- backup_window:
- end_hour_of_day: 5
start_hour_of_day: 1
days_of_month: null
days_of_week: null
hourly_frequency: 6
months: null
recurrence_type: HOURLY
time_zone: America/Los_Angeles
week_day_of_month: []
- backup_retention_days: 30
rule_id: monthly-backup-rule
standard_schedule:
- backup_window:
- end_hour_of_day: 5
start_hour_of_day: 1
days_of_month: null
days_of_week: null
hourly_frequency: null
months: null
recurrence_type: MONTHLY
time_zone: America/Los_Angeles
week_day_of_month:
- day_of_week: MONDAY
week_of_month: FIRST
description: Backup Plan for GCE Instances.
location: us-central1
log_retention_days: null
project: your-gcp-project-id
resource_type: compute.googleapis.com/Instance
timeouts: null
module.dr_example.google_backup_dr_backup_vault.backup_vault[0]:
access_restriction: WITHIN_ORGANIZATION
allow_missing: false
annotations: null
backup_minimum_enforced_retention_duration: 100000s
backup_retention_inheritance: null
backup_vault_id: backup-vault
description: null
effective_labels:
goog-terraform-provisioned: 'true'
effective_time: null
force_delete: false
force_update: false
ignore_backup_plan_references: false
ignore_inactive_datasources: false
labels: null
location: us-central1
project: your-gcp-project-id
terraform_labels:
goog-terraform-provisioned: 'true'
timeouts: null
counts:
google_backup_dr_backup_plan: 1
google_backup_dr_backup_vault: 1
modules: 1
resources: 2
outputs: {}