diff --git a/terraform/aws/data-lifecycle-manager.tf b/terraform/aws/data-lifecycle-manager.tf index ad3948af5..285f74bc6 100644 --- a/terraform/aws/data-lifecycle-manager.tf +++ b/terraform/aws/data-lifecycle-manager.tf @@ -3,7 +3,7 @@ resource "aws_iam_role" "dlm_lifecycle_role" { count = var.enable_nfs_backup ? 1 : 0 - name = "dlm-lifecycle-role" + name = "dlm-lifecycle-role" assume_role_policy = jsonencode({ Version = "2012-10-17" @@ -22,8 +22,8 @@ resource "aws_iam_role" "dlm_lifecycle_role" { # Attach required policy to the IAM role resource "aws_iam_role_policy" "dlm_lifecycle" { count = var.enable_nfs_backup ? 1 : 0 - name = "dlm-lifecycle-policy" - role = aws_iam_role.dlm_lifecycle_role.id + name = "dlm-lifecycle-policy" + role = aws_iam_role.dlm_lifecycle_role.id policy = jsonencode({ Version = "2012-10-17" @@ -53,7 +53,7 @@ resource "aws_iam_role_policy" "dlm_lifecycle" { # Create the DLM lifecycle policy for NFS home directories backup resource "aws_dlm_lifecycle_policy" "nfs_backup" { - count = var.enable_nfs_backup ? 1 : 0 + count = var.enable_nfs_backup ? 1 : 0 description = "DLM lifecycle policy for NFS home directories backup" execution_role_arn = aws_iam_role.dlm_lifecycle_role.arn state = "ENABLED" diff --git a/terraform/aws/ebs-volumes.tf b/terraform/aws/ebs-volumes.tf index 2348c918b..2760542e5 100644 --- a/terraform/aws/ebs-volumes.tf +++ b/terraform/aws/ebs-volumes.tf @@ -8,7 +8,7 @@ resource "aws_ebs_volume" "nfs_home_dirs" { tags = merge(each.value.tags, { Name = each.value.name_suffix == null ? "hub-nfs-home-dirs" : "hub-nfs-home-dirs-${each.value.name_suffix}" - NFSBackup = var.enable_nfs_backup ? "true" : "false" # Tag to identify volumes to backup by Data Lifecycle Manager (DLM) + NFSBackup = var.enable_nfs_backup ? "true" : "false" # Tag to identify volumes to backup by Data Lifecycle Manager (DLM) }) lifecycle {