Skip to content

Commit

Permalink
fix: set recovery_mechanism from str[]
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtoj committed Sep 22, 2023
1 parent 7d39ca6 commit 5616ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ resource "aws_cognito_user_pool" "this" {
dynamic "recovery_mechanism" {
for_each = var.recovery_mechanisms
content {
name = lookup(recovery_mechanism.value, "name")
priority = lookup(recovery_mechanism.value, "priority")
name = recovery_mechanism.value
priority = index(var.recovery_mechanisms, recovery_mechanism.value) + 1
}
}
}
Expand Down

0 comments on commit 5616ffd

Please sign in to comment.