Skip to content

Commit

Permalink
Add index identifiers to prevent errors on plan/apply
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 committed Nov 27, 2024
1 parent 319ccc3 commit ae1c14c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/aws/data-lifecycle-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "aws_iam_role" "dlm_lifecycle_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
role = aws_iam_role.dlm_lifecycle_role[0].id

policy = jsonencode({
Version = "2012-10-17"
Expand Down Expand Up @@ -55,7 +55,7 @@ resource "aws_iam_role_policy" "dlm_lifecycle" {
resource "aws_dlm_lifecycle_policy" "nfs_backup" {
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
execution_role_arn = aws_iam_role.dlm_lifecycle_role[0].arn
state = "ENABLED"

policy_details {
Expand Down

0 comments on commit ae1c14c

Please sign in to comment.