-
Notifications
You must be signed in to change notification settings - Fork 0
docs(azure-sa-backup): update docs and added examples #892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,48 @@ | ||||||||||
| formatter: "markdown" | ||||||||||
|
|
||||||||||
| version: "" | ||||||||||
|
|
||||||||||
| header-from: docs/header.md | ||||||||||
| footer-from: docs/footer.md | ||||||||||
|
|
||||||||||
| recursive: | ||||||||||
| enabled: false | ||||||||||
| path: modules | ||||||||||
| include-main: true | ||||||||||
|
|
||||||||||
| sections: | ||||||||||
| hide: [] | ||||||||||
| show: [] | ||||||||||
|
|
||||||||||
| content: "" | ||||||||||
|
|
||||||||||
| output: | ||||||||||
| file: "README.md" | ||||||||||
| mode: inject | ||||||||||
| template: |- | ||||||||||
| <!-- BEGIN_TF_DOCS --> | ||||||||||
| {{ .Content }} | ||||||||||
| <!-- END_TF_DOCS --> | ||||||||||
|
Comment on lines
+23
to
+25
|
||||||||||
| <!-- BEGIN_TF_DOCS --> | |
| {{ .Content }} | |
| <!-- END_TF_DOCS --> | |
| {{ .Content }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| // Basic example: configure backup for Azure Storage Account (file shares + blobs) | ||
|
|
||
| module "azure_sa_backup" { | ||
| source = "../../" | ||
|
|
||
| backup_resource_group_name = "example-backup-rg" | ||
| storage_account_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Storage/storageAccounts/examplestorage" | ||
|
|
||
| backup_share = { | ||
| policy_name = "daily-backup-policy" | ||
| recovery_services_vault_name = "example-backup-vault" | ||
| sku = "Standard" | ||
| soft_delete_enabled = true | ||
| storage_mode_type = "GeoRedundant" | ||
| cross_region_restore_enabled = true | ||
| source_file_share_name = ["datadir"] | ||
| timezone = "UTC" | ||
| backup = { | ||
| frequency = "Daily" | ||
| time = "02:00" | ||
| } | ||
| retention_daily = { | ||
| count = 7 | ||
| } | ||
| } | ||
|
|
||
| backup_blob = { | ||
| vault_name = "example-backup-vault" | ||
| datastore_type = "AzureBlob" | ||
| redundancy = "GeoRedundant" | ||
| role_assignment = "Storage Blob Data Reader" | ||
| instance_blob_name = "datadir" | ||
| storage_account_container_names = ["blob1"] | ||
| policy = { | ||
| name = "blob-policy" | ||
| backup_repeating_time_intervals = ["R/2024-09-01T02:00:00+00:00/P1D"] | ||
| operational_default_retention_duration = "P7D" | ||
| retention_rule = [] | ||
| time_zone = "UTC" | ||
| vault_default_retention_duration = "P30D" | ||
| retention_duration = "P30D" | ||
| } | ||
| } | ||
|
|
||
| lifecycle_policy_rule = [] | ||
|
|
||
| tags = { | ||
| environment = "dev" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # Basic example values for azure-sa-backup module | ||
|
|
||
| backup_resource_group_name: example-backup-rg | ||
| storage_account_id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Storage/storageAccounts/examplestorage | ||
|
|
||
| backup_share: | ||
| policy_name: daily-backup-policy | ||
| recovery_services_vault_name: example-backup-vault | ||
| sku: Standard | ||
| soft_delete_enabled: true | ||
| storage_mode_type: GeoRedundant | ||
| cross_region_restore_enabled: true | ||
| source_file_share_name: | ||
| - datadir | ||
| timezone: UTC | ||
| backup: | ||
| frequency: Daily | ||
| time: "02:00" | ||
| retention_daily: | ||
| count: 7 | ||
|
|
||
| backup_blob: | ||
| vault_name: example-backup-vault | ||
| datastore_type: AzureBlob | ||
| redundancy: GeoRedundant | ||
| role_assignment: Storage Blob Data Reader | ||
| instance_blob_name: datadir | ||
| storage_account_container_names: | ||
| - blob1 | ||
| policy: | ||
| name: blob-policy | ||
| backup_repeating_time_intervals: | ||
| - R/2024-09-01T02:00:00+00:00/P1D | ||
| operational_default_retention_duration: P7D | ||
| retention_rule: [] | ||
| time_zone: UTC | ||
| vault_default_retention_duration: P30D | ||
| retention_duration: P30D | ||
|
|
||
| lifecycle_policy_rule: [] | ||
|
|
||
| tags: | ||
| environment: dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An empty
versionfield is ambiguous and may be treated as invalid by tooling depending on terraform-docs version/config parsing. Prefer removing theversionkey entirely (if not needed) or setting it to an explicit supported version constraint/value.