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 73e21ee commit 3d031bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions terraform/aws/data-lifecycle-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion terraform/aws/ebs-volumes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3d031bc

Please sign in to comment.