Files
defiQUG 1fb7266469 Add Oracle Aggregator and CCIP Integration
- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control.
- Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities.
- Created .gitmodules to include OpenZeppelin contracts as a submodule.
- Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment.
- Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks.
- Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring.
- Created scripts for resource import and usage validation across non-US regions.
- Added tests for CCIP error handling and integration to ensure robust functionality.
- Included various new files and directories for the orchestration portal and deployment scripts.
2025-12-12 14:57:48 -08:00

58 lines
1.3 KiB
HCL

# Backup Module for Azure
# Creates Recovery Services Vault for VM backups
# Recovery Services Vault
resource "azurerm_recovery_services_vault" "main" {
name = "${var.cluster_name}-backup-vault"
location = var.location
resource_group_name = var.resource_group_name
sku = "Standard"
# Enable soft delete and retention
soft_delete_enabled = true
tags = merge(var.tags, {
Purpose = "Backup"
})
}
# Backup Policy for VMs
resource "azurerm_backup_policy_vm" "daily" {
name = "${var.cluster_name}-daily-backup-policy"
resource_group_name = var.resource_group_name
recovery_vault_name = azurerm_recovery_services_vault.main.name
# Daily backup at 2 AM
timezone = "UTC"
backup {
frequency = "Daily"
time = "02:00"
}
retention_daily {
count = var.environment == "prod" ? 30 : 7
}
retention_weekly {
count = var.environment == "prod" ? 12 : 4
weekdays = ["Sunday"]
}
retention_monthly {
count = var.environment == "prod" ? 12 : 3
weekdays = ["Sunday"]
weeks = ["First"]
}
retention_yearly {
count = var.environment == "prod" ? 7 : 1
weekdays = ["Sunday"]
weeks = ["First"]
months = ["January"]
}
}
# Outputs are defined in outputs.tf