Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 26, 2024
1 parent 5c65729 commit 99fa60d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions terraform/aws/data-lifecycle-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ resource "aws_iam_role_policy" "dlm_lifecycle" {
resource "aws_dlm_lifecycle_policy" "nfs_backup" {
description = "DLM lifecycle policy for NFS home directories backup"
execution_role_arn = aws_iam_role.dlm_lifecycle_role.arn
state = "ENABLED"
state = "ENABLED"

policy_details {
resource_types = ["VOLUME"]
Expand All @@ -68,7 +68,7 @@ resource "aws_dlm_lifecycle_policy" "nfs_backup" {
}

retain_rule {
count = 5 # Keep last 5 daily backups
count = 5 # Keep last 5 daily backups
}

tags_to_add = {
Expand All @@ -80,7 +80,7 @@ resource "aws_dlm_lifecycle_policy" "nfs_backup" {
}

target_tags = {
NFSBackup = "true" # Tag to identify volumes to backup
NFSBackup = "true" # Tag to identify volumes to backup
}
}
}
4 changes: 2 additions & 2 deletions terraform/aws/ebs-volumes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ resource "aws_ebs_volume" "nfs_home_dirs" {
encrypted = true

tags = merge(each.value.tags, {
Name = each.value.name_suffix == null ? "hub-nfs-home-dirs" : "hub-nfs-home-dirs-${each.value.name_suffix}"
NFSBackup = "true" # Tag to identify volumes to backup by Data Lifecycle Manager (DLM)
Name = each.value.name_suffix == null ? "hub-nfs-home-dirs" : "hub-nfs-home-dirs-${each.value.name_suffix}"
NFSBackup = "true" # Tag to identify volumes to backup by Data Lifecycle Manager (DLM)
})

lifecycle {
Expand Down

0 comments on commit 99fa60d

Please sign in to comment.