diff --git a/modules/aws-backup-source/backup_report_plan.tf b/modules/aws-backup-source/backup_report_plan.tf index e0dc2b6..a8033fe 100644 --- a/modules/aws-backup-source/backup_report_plan.tf +++ b/modules/aws-backup-source/backup_report_plan.tf @@ -1,6 +1,6 @@ # Create the reports resource "aws_backup_report_plan" "backup_jobs" { - name = "${local.resource_name_prefix}_backup_jobs" + name = replace("${local.resource_name_prefix}_backup_jobs", "-", "_") description = "Report for showing whether backups ran successfully in the last 24 hours" report_delivery_channel { @@ -18,7 +18,7 @@ resource "aws_backup_report_plan" "backup_jobs" { # Create the restore testing completion reports resource "aws_backup_report_plan" "backup_restore_testing_jobs" { - name = "${local.resource_name_prefix}_backup_restore_testing_jobs" + name = replace("${local.resource_name_prefix}_backup_restore_testing_jobs", "-", "_") description = "Report for showing whether backup restore test ran successfully in the last 24 hours" report_delivery_channel { @@ -35,7 +35,7 @@ resource "aws_backup_report_plan" "backup_restore_testing_jobs" { } resource "aws_backup_report_plan" "resource_compliance" { - name = "${local.resource_name_prefix}_resource_compliance" + name = replace("${local.resource_name_prefix}_resource_compliance", "-", "_") description = "Report for showing whether resources are compliant with the framework" report_delivery_channel { @@ -55,7 +55,7 @@ resource "aws_backup_report_plan" "resource_compliance" { resource "aws_backup_report_plan" "copy_jobs" { count = var.backup_copy_vault_arn != "" && var.backup_copy_vault_account_id != "" ? 1 : 0 - name = "${local.resource_name_prefix}_copy_jobs" + name = replace("${local.resource_name_prefix}_copy_jobs", "-", "_") description = "Report for showing whether copies ran successfully in the last 24 hours" report_delivery_channel { diff --git a/modules/aws-backup-source/versions.tf b/modules/aws-backup-source/versions.tf index 35c69b8..f118921 100644 --- a/modules/aws-backup-source/versions.tf +++ b/modules/aws-backup-source/versions.tf @@ -16,5 +16,5 @@ terraform { } } - required_version = ">= 1.9.5" + required_version = ">= 1.4.0" }