Skip to content

Commit 67d7f82

Browse files
committed
Removed lookup
1 parent 40559b7 commit 67d7f82

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

main.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,13 @@ resource "aws_cognito_user_pool_client" "client" {
235235
dynamic "token_validity_units" {
236236
for_each = length(each.value.token_validity_units) > 0 ? [true] : []
237237
content {
238-
refresh_token = lookup(token_validity_units.value, "refresh_token", null)
239-
access_token = lookup(token_validity_units.value, "access_token", null)
240-
id_token = lookup(token_validity_units.value, "id_token", null)
238+
refresh_token = each.value.token_validity_units.refresh_token
239+
access_token = each.value.token_validity_units.access_token
240+
id_token = each.value.token_validity_units.id_token
241241
}
242242
}
243243
enable_token_revocation = each.value.enable_token_revocation
244244
}
245-
246245
resource "aws_cognito_user_pool_domain" "domain" {
247246
count = var.module_enabled && var.domain != null ? 1 : 0
248247

0 commit comments

Comments
 (0)